mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
f4d834367c
commit
ca1b145761
1 changed files with 2 additions and 1 deletions
|
|
@ -319,7 +319,8 @@ const char *perf_evsel__name(struct perf_evsel *evsel)
|
|||
break;
|
||||
|
||||
default:
|
||||
scnprintf(bf, sizeof(bf), "%s", "unknown attr type");
|
||||
scnprintf(bf, sizeof(bf), "unknown attr type: %d",
|
||||
evsel->attr.type);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue