aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-08-12 04:19:53 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2009-08-12 06:04:39 -0400
commit1fe2c1066ce6a30bda7b27785ee3d9b8e62ffbbd (patch)
treeb19630a1a6a2d44a61da0443b0f9de52e42738a6 /tools/perf/builtin-top.c
parentcd84c2ac6d6425dd4d1b80a2231e534b9b03df18 (diff)
perf tools: Factorize the event structure definitions in a single file
Factorize the multiple definition of the events structures into a single util/event.h file. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Brice Goglin <Brice.Goglin@inria.fr>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 0aa567371bd3..9a6dbbff9a9f 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -933,26 +933,6 @@ static void mmap_read_counter(struct mmap_data *md)
933 last_read = this_read; 933 last_read = this_read;
934 934
935 for (; old != head;) { 935 for (; old != head;) {
936 struct ip_event {
937 struct perf_event_header header;
938 u64 ip;
939 u32 pid, target_pid;
940 };
941 struct mmap_event {
942 struct perf_event_header header;
943 u32 pid, target_pid;
944 u64 start;
945 u64 len;
946 u64 pgoff;
947 char filename[PATH_MAX];
948 };
949
950 typedef union event_union {
951 struct perf_event_header header;
952 struct ip_event ip;
953 struct mmap_event mmap;
954 } event_t;
955
956 event_t *event = (event_t *)&data[old & md->mask]; 936 event_t *event = (event_t *)&data[old & md->mask];
957 937
958 event_t event_copy; 938 event_t event_copy;