Arnaldo Carvalho de Melo
9779fc0214
perf trace: Augment inotify_add_watch pathname syscall arg
...
Again, just changing tools/perf/examples/bpf/augmented_syscalls.c, that
is starting to have too much boilerplate, some macro will come to the
rescue.
# perf trace -e tools/perf/examples/bpf/augmented_syscalls.c
0.000 gmain/2590 inotify_add_watch(fd: 3<anon_inode:inotify>, pathname: /var/cache/app-info/yaml, mask: 16789454)
0.023 gmain/2590 inotify_add_watch(fd: 3<anon_inode:inotify>, pathname: /var/lib/app-info/xmls, mask: 16789454)
0.028 gmain/2590 inotify_add_watch(fd: 3<anon_inode:inotify>, pathname: /var/lib/app-info/yaml, mask: 16789454)
0.032 gmain/2590 inotify_add_watch(fd: 3<anon_inode:inotify>, pathname: /usr/share/app-info/yaml, mask: 16789454)
0.039 gmain/2590 inotify_add_watch(fd: 3<anon_inode:inotify>, pathname: /usr/local/share/app-info/xmls, mask: 16789454)
0.045 gmain/2590 inotify_add_watch(fd: 3<anon_inode:inotify>, pathname: /usr/local/share/app-info/yaml, mask: 16789454)
0.049 gmain/2590 inotify_add_watch(fd: 3<anon_inode:inotify>, pathname: /home/acme/.local/share/app-info/yaml, mask: 16789454)
0.056 gmain/2590 inotify_add_watch(fd: 3<anon_inode:inotify>, pathname: , mask: 16789454)
0.010 gmain/2245 inotify_add_watch(fd: 7<anon_inode:inotify>, pathname: /home/acme/~, mask: 16789454)
0.087 perf/20116 openat(dfd: CWD, filename: /sys/kernel/debug/tracing/events/syscalls/sys_enter_inotify_add)
0.436 perf/20116 openat(dfd: CWD, filename: /sys/kernel/debug/tracing/events/syscalls/sys_enter_openat/form)
56.042 gmain/2791 inotify_add_watch(fd: 4<anon_inode:inotify>, pathname: /var/lib/fwupd/remotes.d/lvfs-testing, mask: 16789454)
113.986 gmain/1721 inotify_add_watch(fd: 3<anon_inode:inotify>, pathname: /var/lib/gdm/~, mask: 16789454)
3777.265 gsd-color/2408 openat(dfd: CWD, filename: /etc/localtime)
3777.550 gsd-color/2408 openat(dfd: CWD, filename: /etc/localtime)
^C[root@jouet perf]#
Still not combining raw_syscalls:sys_enter + raw_syscalls:sys_exit, to
get it strace-like, but that probably will come very naturally with some
more wiring up...
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-ol83juin2cht9vzquynec5hz@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-08-30 15:52:19 -03:00
..
2018-08-30 15:15:11 -03:00
2018-07-30 12:36:51 -03:00
2018-08-08 15:55:54 -03:00
2018-08-30 15:52:19 -03:00
2018-08-08 15:55:57 -03:00
2018-07-11 09:39:57 -04:00
2018-08-08 15:55:43 -03:00
2018-02-19 12:28:08 -03:00
2018-07-11 10:01:50 -03:00
2018-08-20 08:54:59 -03:00
2018-08-30 15:52:18 -03:00
2018-08-08 15:55:52 -03:00
2018-08-30 15:51:54 -03:00
2018-02-05 13:58:02 -03:00
2018-01-23 09:51:38 -03:00
2018-08-08 15:55:53 -03:00
2017-11-02 11:10:55 +01:00
2018-05-15 10:32:16 -03:00
2017-11-07 10:30:18 +01:00
2018-07-31 10:53:20 -03:00
2017-11-07 10:30:18 +01:00
2017-11-02 11:10:55 +01:00
2018-07-24 14:37:33 -03:00
2017-11-07 10:30:18 +01:00
2018-02-19 09:49:12 -03:00
2018-04-12 10:33:31 -03:00
2018-04-26 13:47:08 -03:00
2018-04-30 12:20:54 -03:00
2018-08-13 15:22:18 -03:00
2018-06-04 10:28:52 -03:00
2017-11-07 10:30:18 +01:00
2017-11-07 10:30:18 +01:00
2018-04-18 15:35:48 -03:00
2018-06-04 10:28:50 -03:00
2018-03-16 13:56:50 -03:00
2018-08-13 15:22:10 -03:00
2018-06-05 10:09:54 -03:00
2018-08-13 15:22:10 -03:00
2018-07-24 14:54:58 -03:00
2018-04-26 13:47:09 -03:00
2018-07-24 14:37:33 -03:00
2018-08-30 15:52:19 -03:00
2018-04-12 10:33:34 -03:00
2017-11-02 11:10:55 +01:00
2018-08-14 15:10:40 -03:00
2017-03-13 10:59:31 -03:00
2018-08-20 08:54:58 -03:00
2018-07-31 10:54:50 -03:00
2018-08-30 14:49:25 -03:00
2017-09-25 10:39:43 -03:00
2017-11-02 11:10:55 +01:00
2017-12-27 12:16:00 -03:00
2017-11-02 11:10:55 +01:00
2018-02-23 14:29:59 +00:00
2015-08-06 16:48:27 -03:00
2018-06-04 10:28:50 -03:00
2018-08-01 12:33:24 -03:00