monitoring an fd (and only that fd)

Dmitry V. Levin ldv at strace.io
Sat Mar 18 12:40:00 UTC 2023


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.


-- 
ldv


More information about the Strace-devel mailing list