perf session: Use evlist/evsel for managing perf.data attributes
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Mar 2011 14:15:54 +0000 (11:15 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Mar 2011 14:15:54 +0000 (11:15 -0300)
commita91e5431d54f5359fccb5ec2512f252eb217707e
tree8f8ba4940d9f4e910b339baee13a710baa920378
parent6547250381eb315acff3d52b4872ad775359407c
perf session: Use evlist/evsel for managing perf.data attributes

So that we can reuse things like the id to attr lookup routine
(perf_evlist__id2evsel) that uses a hash table instead of the linear
lookup done in the older perf_header_attr routines, etc.

Also to make evsels/evlist more pervasive an API, simplyfing using the
emerging perf lib.

cc: Arun Sharma <arun@sharma-home.net>
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-record.c
tools/perf/builtin-report.c
tools/perf/builtin-top.c
tools/perf/util/evlist.c
tools/perf/util/evlist.h
tools/perf/util/evsel.c
tools/perf/util/evsel.h
tools/perf/util/header.c
tools/perf/util/header.h
tools/perf/util/session.c
tools/perf/util/session.h