Skip to content

Commit 2c9a11a

Browse files
ahunter6acmel
authored andcommitted
perf tools: Improve aux_output not supported error
For example: Before: $ perf record -e '{intel_pt/branch=0/,branch-loads/aux-output/ppp}' -- ls -l Error: branch-loads: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat' After: $ perf record -e '{intel_pt/branch=0/,branch-loads/aux-output/ppp}' -- ls -l Error: branch-loads: PMU Hardware doesn't support 'aux_output' feature Signed-off-by: Adrian Hunter <[email protected]> Reviewed-by: Andi Kleen <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent a58a057 commit 2c9a11a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/perf/util/evsel.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,6 +2535,10 @@ int evsel__open_strerror(struct evsel *evsel, struct target *target,
25352535
"No such device - did you specify an out-of-range profile CPU?");
25362536
break;
25372537
case EOPNOTSUPP:
2538+
if (evsel->core.attr.aux_output)
2539+
return scnprintf(msg, size,
2540+
"%s: PMU Hardware doesn't support 'aux_output' feature",
2541+
evsel__name(evsel));
25382542
if (evsel->core.attr.sample_period != 0)
25392543
return scnprintf(msg, size,
25402544
"%s: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat'",

0 commit comments

Comments
 (0)