perf session: Change perf_session__has_traces to actually check for tracepoints
authorDavid Ahern <dsahern@gmail.com>
Thu, 8 Aug 2013 02:50:58 +0000 (22:50 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 12 Aug 2013 13:31:08 +0000 (10:31 -0300)
commit93ea01c29d4ed5a9fcf6d9a95bc584e54a420834
treee3b3bbc8162d23c0fd47d5303274d31c9f8e4994
parent307cbb92aa2bdc9eed7c74409ff4d5fc9135b4e2
perf session: Change perf_session__has_traces to actually check for tracepoints

Any event can have RAW data attribute set. The intent of the function is
to determine if the session has tracepoints, so check for the type of
each event explicitly.

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1375930261-77273-17-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/session.c