diff options
author | Robert Richter <robert.richter@amd.com> | 2012-08-16 15:10:18 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-08-17 12:11:29 -0400 |
commit | ca1b145761e9355f90bfae1f42c9d9194702066b (patch) | |
tree | 632c16e3e55ca6b7225a9bd04b38ce66e37471c0 /tools/perf/util | |
parent | f4d834367cda98eee3769638da6ad687607c74e6 (diff) |
perf tools: Report number of pmu type of unknown events
If detection fails and an event name is unknown, report the type number.
Example perf header output:
# Samples: 10K of event 'unknown attr type: 7'
Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1345144224-27280-3-git-send-email-robert.richter@amd.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/evsel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 6c7dcc1fde5a..7ff3c8fb736c 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -319,7 +319,8 @@ const char *perf_evsel__name(struct perf_evsel *evsel) | |||
319 | break; | 319 | break; |
320 | 320 | ||
321 | default: | 321 | default: |
322 | scnprintf(bf, sizeof(bf), "%s", "unknown attr type"); | 322 | scnprintf(bf, sizeof(bf), "unknown attr type: %d", |
323 | evsel->attr.type); | ||
323 | break; | 324 | break; |
324 | } | 325 | } |
325 | 326 | ||