diff options
author | Jiri Olsa <jolsa@kernel.org> | 2018-06-07 01:15:10 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-06-07 22:03:21 +0300 |
commit | a5cfa6217c94a1f1cfad4481fc14f5fc399abde3 (patch) | |
tree | b86b93ebda3fc2a723ae5dc6b8a29fdf59dd4291 /tools/perf/builtin-c2c.c | |
parent | c1a1f5d9da800dc715d8c1d8a9692c63c70c2955 (diff) | |
download | linux-a5cfa6217c94a1f1cfad4481fc14f5fc399abde3.tar.xz |
perf stat: Add event parsing error handling to add_default_attributes
Add missing error handling for parse_events calls in add_default_attributes
functions. The error handler displays error details, like for transactions (-T):
Before:
$ perf stat -T
Cannot set up transaction events
After:
$ perf stat -T
Cannot set up transaction events
event syntax error: '..cycles,cpu/cycles-t/,cpu/tx-start/,cpu/el-start/,cpu/cycles-ct/}'
\___ unknown term
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20180606221513.11302-8-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-c2c.c')
0 files changed, 0 insertions, 0 deletions