ftrace events: parameter tracing

valdis.kletnieks at vt.edu valdis.kletnieks at vt.edu
Wed Feb 14 14:06:12 EST 2018


On Wed, 14 Feb 2018 19:39:31 +0100, Christof Warlich said:

> program. E.g., recording the the start and the end of any open* system 
> call while running ls /:
>
>     # trace-cmd record --stderr  -e syscalls:sys_enter_open* -e
>     syscalls:sys_exit_open* -c -F ls / 2>/dev/null

Bonus hint:  ls doesn't even call open() on the files, it calls stat() on the files. :)

Your open() calls are probably for shared libraries or stuff in /usr/lib/locale/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180214/0fb1dcc2/attachment.sig>


More information about the Kernelnewbies mailing list