perf tools: Improve support for sessions with multiple events
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 6 Mar 2011 00:40:06 +0000 (21:40 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 6 Mar 2011 16:13:40 +0000 (13:13 -0300)
commite248de331a452f8771eda6ed4bb30d92c82df28b
tree7ef04743a7bf7a1da354a3b82536ef32504823d9
parent3d3b5e95997208067c963923db90ed1517565d14
perf tools: Improve support for sessions with multiple events

By creating an perf_evlist out of the attributes in the perf.data file
header, so that we can use evlists and evsels when reading recorded
sessions in addition to when we record sessions.

More work is needed to allow tools to allow the user to select which
events are wanted when browsing sessions, be it just one or a subset of
them, aggregated or showed at the same time but with different
indications on the UI to allow seeing workloads thru different views at
the same time.

But the overall goal/trend is to more uniformly use evsels and evlists.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-annotate.c
tools/perf/builtin-report.c
tools/perf/util/evsel.h
tools/perf/util/header.c
tools/perf/util/header.h
tools/perf/util/hist.c
tools/perf/util/hist.h
tools/perf/util/session.c
tools/perf/util/session.h
tools/perf/util/ui/browsers/hists.c