diff options
author | Andi Kleen <ak@linux.intel.com> | 2017-09-13 14:50:06 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-09-18 09:40:20 -0300 |
commit | 333b566559019b146905c623bde7f455c1d5add3 (patch) | |
tree | 5a55781d107265752784ba23a2257e18bd922bd1 /tools/perf/builtin-timechart.c | |
parent | 75e45e432052c7b1a5da866cff88192db8be1445 (diff) | |
download | talos-op-linux-333b566559019b146905c623bde7f455c1d5add3.tar.gz talos-op-linux-333b566559019b146905c623bde7f455c1d5add3.zip |
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 <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170913215006.32222-1-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-timechart.c')
0 files changed, 0 insertions, 0 deletions