diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2018-12-19 10:01:20 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-12-21 09:42:46 -0300 |
commit | f76214f93783f9f902954cf6e57fd818c4bffe29 (patch) | |
tree | fff9c01376e6140c3db4069670c3e4c2d0e35cf8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 883f4def8b77e6870ce42be279564cca0256c611 (diff) |
perf trace: Check if the raw_syscalls:sys_{enter,exit} are setup before setting tp filter
While updating 'perf trace' on an machine with an old precompiled
augmented_raw_syscalls.o that didn't setup the syscall map the new 'perf
trace' codebase notices the augmented_raw_syscalls.o eBPF event, decides
to use it instead of the old raw_syscalls:sys_{enter,exit} method, but
then because we don't have the syscall map tries to set the tracepoint
filter on the sys_{enter,exit} evsels, that are NULL, segfaulting.
Make the code more robust by checking it those tracepoints have
their respective evsels in place before trying to set the tp filter.
With this we still get everything to work, just not setting up the
syscall filters, which is better than a segfault. Now to update the
precompiled augmented_raw_syscalls.o and continue development :-)
Cc: Adrian Hunter <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Luis Cláudio Gonçalves <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions