]> git.baikalelectronics.ru Git - kernel.git/commit
perf stat: Tell user about unsupported events in the list
authorDavid Ahern <dsahern@gmail.com>
Fri, 29 Apr 2011 22:04:15 +0000 (16:04 -0600)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 Apr 2011 22:18:14 +0000 (00:18 +0200)
commit59b35dfb18be643a84117749aa126b96eecb6a3d
treec00105af90d900c5eacacb43bbb499229043d0f9
parent00b5f30528991c4fc4652b5a19ef74cb363c4ad2
perf stat: Tell user about unsupported events in the list

Similar to perf-record, tell user about unsupported events
that will not be counted if invoked in verbose mode.

e.g.,

 $ perf stat -e dTLB-prefetch-misses -v -- sleep 1
 dTLB-prefetch-misses event is not supported by the kernel.
 dTLB-prefetch-misses: 0 0 0

 Performance counter stats for 'sleep 1':

     <not counted> dTLB-prefetch-misses

        1.001884783  seconds time elapsed

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/1304114655-10600-1-git-send-email-dsahern@gmail.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-stat.c