diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2019-08-13 11:06:38 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-08-14 10:59:59 -0300 |
commit | acb9f2d4755a70e31343f99791aa43b05401b996 (patch) | |
tree | 72d739474b3b374c48ed9f28589c813a7640edc8 /lib/test_overflow.c | |
parent | 243384dd25c8ea721c5c82a229eaf33cbd1bfd52 (diff) |
perf evsel: Provide meaningful warning when trying to use 'aux_output' on older kernels
Just like we do with the 'write_backwards' feature:
Before:
# perf record -e {intel_pt/branch=0/,cycles/aux-output/ppp} uname
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cycles/aux-output/ppp).
/bin/dmesg | grep -i perf may provide additional information.
#
After:
# perf record -e {intel_pt/branch=0/,cycles/aux-output/ppp} uname
Error:
The 'aux_output' feature is not supported, update the kernel.
#
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions