diff options
author | Jack Henschel <[email protected]> | 2018-07-04 14:13:45 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-08-20 08:54:58 -0300 |
commit | 49836f7811f383d8613661fff110ce74f4710d52 (patch) | |
tree | 06cb98ace9b919e0ffeefa7acc409f38dd08df73 /tools/perf/util/trace-event-scripting.c | |
parent | da15fc2fa9c07b23db8f5e479bd8a9f0d741ca07 (diff) |
perf parser: Improve error message for PMU address filters
This is the second version of a patch that improves the error message of
the perf events parser when the PMU hardware does not support address
filters.
Previously, the perf returned the following error:
$ perf record -e intel_pt// --filter 'filter sys_write'
--filter option should follow a -e tracepoint or HW tracer option
This implies there is some syntax error present in the command line,
which is not true. Rather, notify the user that the CPU does not have
support for this feature.
For example, Intel chips based on the Broadwell micro-archticture have
the Intel PT PMU, but do not support address filtering.
Now, perf prints the following error message:
$ perf record -e intel_pt// --filter 'filter sys_write'
This CPU does not support address filtering
Signed-off-by: Jack Henschel <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Peter Zijlstra <[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/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions