diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-01-24 15:39:15 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-01-25 15:12:11 +0100 |
commit | 1d59cb1bbd4cbe5a8f8032242cdacea5658129cf (patch) | |
tree | 97956d126ac8b353febce7487f8b9bfe633807cf /tools/perf/examples/bpf/etcsnoop.c | |
parent | 56d8175a4d05ed31fe9c3053a83a5f8e08a284ee (diff) | |
download | linux-stable-1d59cb1bbd4cbe5a8f8032242cdacea5658129cf.tar.gz linux-stable-1d59cb1bbd4cbe5a8f8032242cdacea5658129cf.tar.bz2 linux-stable-1d59cb1bbd4cbe5a8f8032242cdacea5658129cf.zip |
perf trace: Fixup etcsnoop example
Where we don't have "raw_syscalls:sys_enter", so we need to look for a
"*syscalls:sys_enter*" to initialize the offsets for the
__augmented_syscalls__ evsel, which is the case with etcsnoop, that was
segfaulting, fixed:
# trace -e /home/acme/git/perf/tools/perf/examples/bpf/etcsnoop.c
0.000 ( ): gnome-shell/2105 openat(dfd: CWD, filename: "/etc/localtime") ...
631.834 ( ): cat/6521 openat(dfd: CWD, filename: "/etc/ld.so.cache", flags: RDONLY|CLOEXEC) ...
632.637 ( ): bash/6521 openat(dfd: CWD, filename: "/etc/passwd") ...
^C#
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Fixes: b9b6a2ea2baf ("perf trace: Do not hardcode the size of the tracepoint common_ fields")
Link: https://lkml.kernel.org/n/tip-0tjwcit8qitsmh4nyvf2b0jo@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/examples/bpf/etcsnoop.c')
0 files changed, 0 insertions, 0 deletions