perf list: Skip unsupported events
authorNamhyung Kim <namhyung.kim@lge.com>
Tue, 27 Aug 2013 02:41:53 +0000 (11:41 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 2 Sep 2013 17:58:21 +0000 (14:58 -0300)
commitb41f1cec91c37eeea6fdb15effbfa24ea0a5536b
tree5a146b068973b9a3060a5188cc6a3154ed386eeb
parent395c307089c9f5f0d82c63c11c79227b57bb7ac5
perf list: Skip unsupported events

Some hardware events might not be supported on a system.  Listing those
events seems meaningless and confusing to users.  Let's skip them.

Before:
  $ perf list cache | wc -l
  33

After:
  $ perf list cache | wc -l
  27

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1377571313-14722-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c