aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAndi Kleen <[email protected]>2017-09-13 14:50:06 -0700
committerArnaldo Carvalho de Melo <[email protected]>2017-09-18 09:40:20 -0300
commit333b566559019b146905c623bde7f455c1d5add3 (patch)
tree5a55781d107265752784ba23a2257e18bd922bd1 /tools/perf/scripts/python
parent75e45e432052c7b1a5da866cff88192db8be1445 (diff)
perf pmu: Improve error messages for missing PMUs
When a PMU is missing print a better error message mentioning the missing PMU. % mkdir empty % mount --bind empty /sys/devices/msr % perf stat -M Summary true event syntax error: '{inst_retired.any,cycles}:W,{cpu_clk_unhalted.thread}:W,{inst_retired.any}:W,{cpu_clk_unhalted.ref_tsc,msr/tsc/}:W,{fp_comp_ops_exe.sse_scalar..' \___ Cannot find PMU `msr'. Missing kernel support? It still cannot find the right column for aliases, but it's already a vast improvement. v2: Check asprintf Signed-off-by: Andi Kleen <[email protected]> Acked-by: 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/scripts/python')
0 files changed, 0 insertions, 0 deletions