[RFC 2/4] Add eventfd option to --decode-fds

Sahil icegambit91 at gmail.com
Tue Apr 30 05:19:44 UTC 2024


Hi,

On Tuesday, April 30, 2024 4:41:39 AM IST Masatake YAMATO wrote:
> [...]
> In addition to "count", I think printing "id" is useful.
> 
>     $ cat /proc/56214/fdinfo/42
>     pos:	0
>     flags:	02004002
>     mnt_id:	16
>     ino:	72
>     eventfd-count:                0
>     eventfd-id: 114
>     eventfd-semaphore: 0
> 
> All eventfds have the same inode number.  On the other hand
> eventfd-id can be used to identify eventfd instances.
> See
> https://patchwork.kernel.org/project/linux-fsdevel/patch/20180520201823.142
> 93-1-yamato at redhat.com/
> 
> I expect strace repots the above example as
> 
> 	   42<eventfd count:0 id:114">
>

Thank you for your feedback. I have gone through the linked patch and
have understood it. I'll submit a new patch with this change.

Thanks,
Sahil





More information about the Strace-devel mailing list