diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-03-10 09:15:54 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-03-10 09:15:54 -0500 |
commit | a91e5431d54f5359fccb5ec2512f252eb217707e (patch) | |
tree | 8f8ba4940d9f4e910b339baee13a710baa920378 /tools/perf/util/evsel.h | |
parent | 6547250381eb315acff3d52b4872ad775359407c (diff) |
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>
Diffstat (limited to 'tools/perf/util/evsel.h')
-rw-r--r-- | tools/perf/util/evsel.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 281b60e5fc7b..6710ab538342 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h | |||
@@ -49,12 +49,17 @@ struct perf_evsel { | |||
49 | struct perf_event_attr attr; | 49 | struct perf_event_attr attr; |
50 | char *filter; | 50 | char *filter; |
51 | struct xyarray *fd; | 51 | struct xyarray *fd; |
52 | struct xyarray *id; | 52 | struct xyarray *sample_id; |
53 | u64 *id; | ||
53 | struct perf_counts *counts; | 54 | struct perf_counts *counts; |
54 | int idx; | 55 | int idx; |
56 | int ids; | ||
55 | struct hists hists; | 57 | struct hists hists; |
56 | char *name; | 58 | char *name; |
57 | void *priv; | 59 | union { |
60 | void *priv; | ||
61 | off_t id_offset; | ||
62 | }; | ||
58 | struct cgroup_sel *cgrp; | 63 | struct cgroup_sel *cgrp; |
59 | }; | 64 | }; |
60 | 65 | ||