[strace/strace] Feature request: reads from inotify file descriptors should decode the struct (#199)

Dmitry V. Levin notifications at github.com
Thu Oct 7 00:32:17 UTC 2021


On Wed, Oct 06, 2021 at 05:20:37PM -0700, Érico Nogueira Rolim wrote:
> I'm not sure if this is possible with the current infrastructure, and I only looked through the strace code base briefly... But the idea would be to somehow register a file descriptor as having been created by `inotify_init/inotify_init1`, and then reads from this file descriptor would show the decoded `struct inotify_event` instead of interpreting it as a string.

These descriptors could be identified using readlink of /proc/$pid/fd/$fd,
strace already employs this method for other purposes, so yes, this should
be technically possible.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/issues/199#issuecomment-937346999
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20211006/17d58b49/attachment.htm>


More information about the Strace-devel mailing list