summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/bpf-script-example.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo2018-04-17 19:47:36 +0200
committerArnaldo Carvalho de Melo2018-04-18 20:35:52 +0200
commit518c6021e9b82696819b380cd173e76cac55a01e (patch)
tree35f3acb40c7e57db8381ead4a49106e2cabd0bec /tools/perf/tests/bpf-script-example.c
parentperf tools: Add '\n' at the end of parse-options error messages (diff)
downloadkernel-qcow2-linux-518c6021e9b82696819b380cd173e76cac55a01e.tar.gz
kernel-qcow2-linux-518c6021e9b82696819b380cd173e76cac55a01e.tar.xz
kernel-qcow2-linux-518c6021e9b82696819b380cd173e76cac55a01e.zip
perf tests mmap: Show which tracepoint is failing
In the 'perf test "mmap interface"' we try creating events for several tracepoints, but when perf_evsel__new() fails we're not showing which one is failing, fix that to help diagnosing problems, such as the syscall tracepoints ones being found and fixes in this merge window. Now the failing tests shows: # perf test -v "mmap interface" 4: Read samples using the mmap interface : --- start --- test child forked, pid 14311 <SNIP> perf_evsel__new(sys_enter_getppid) test child finished with -1 ---- end ---- Read samples using the mmap interface: FAILED! # Now to check why the syscalls:sys_enter_getppid is failing... # ls -la /sys/kernel/debug/tracing/events/syscalls/sys_enter_getppid ls: cannot access '/sys/kernel/debug/tracing/events/syscalls/sys_enter_getppid': No such file or directory # Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Dominik Brodowski <linux@dominikbrodowski.net> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-44xk0ycdzrfzx1o9rklf5itl@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/bpf-script-example.c')
0 files changed, 0 insertions, 0 deletions