monitoring an fd (and only that fd)

Eugene Syromyatnikov evgsyr at gmail.com
Tue Apr 25 11:50:56 UTC 2023


On Sat, Mar 18, 2023 at 1:40 PM Dmitry V. Levin <ldv at strace.io> wrote:
>
> Hi,
>
> On Tue, Mar 14, 2023 at 08:33:16PM -0400, marty leisner wrote:
> > I'm using strace 5.16 (and earlier versions).
> >
> > How do I monitor an FD for reads/writes (and only that fd) (without
> > resorting to post strace filters)?
> >
> > (I've done various combinations with --read=<set> and --write=<set> (which
> > shows what I want) but I want to EXCLUDE
> > all others fds...
>
> I don't think strace can filter syscalls by descriptor numbers yet,
> although technically this shouldn't be very hard to implement.

Implemented in v6.2-20-g67eb44c4d.

-- 
Eugene Syromyatnikov
mailto:evgsyr at gmail.com
xmpp:esyr at jabber.{ru|org}


More information about the Strace-devel mailing list