perf tools: Report number of pmu type of unknown events
authorRobert Richter <robert.richter@amd.com>
Thu, 16 Aug 2012 19:10:18 +0000 (21:10 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 17 Aug 2012 16:11:29 +0000 (13:11 -0300)
commitca1b145761e9355f90bfae1f42c9d9194702066b
tree632c16e3e55ca6b7225a9bd04b38ce66e37471c0
parentf4d834367cda98eee3769638da6ad687607c74e6
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>
tools/perf/util/evsel.c