diff options
| author | Adrian Hunter <[email protected]> | 2018-11-26 12:12:52 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-12-17 17:54:51 +0000 |
| commit | 1c6f709b9f96366cc47af23c05ecec9b8c0c392d (patch) | |
| tree | 284f919e885b3cf029a40624b7777f16713e61d5 /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | perf top: Allow passing a kallsyms file (diff) | |
| download | kernel-1c6f709b9f96366cc47af23c05ecec9b8c0c392d.tar.gz kernel-1c6f709b9f96366cc47af23c05ecec9b8c0c392d.zip | |
perf intel-pt: Fix error with config term "pt=0"
Users should never use 'pt=0', but if they do it may give a meaningless
error:
$ perf record -e intel_pt/pt=0/u uname
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for
event (intel_pt/pt=0/u).
Fix that by forcing 'pt=1'.
Committer testing:
# perf record -e intel_pt/pt=0/u uname
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (intel_pt/pt=0/u).
/bin/dmesg | grep -i perf may provide additional information.
# perf record -e intel_pt/pt=0/u uname
pt=0 doesn't make sense, forcing pt=1
Linux
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.020 MB perf.data ]
#
Signed-off-by: Adrian Hunter <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
