diff options
| author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-08-12 04:19:53 -0400 |
|---|---|---|
| committer | Frederic Weisbecker <fweisbec@gmail.com> | 2009-08-12 06:04:39 -0400 |
| commit | 1fe2c1066ce6a30bda7b27785ee3d9b8e62ffbbd (patch) | |
| tree | b19630a1a6a2d44a61da0443b0f9de52e42738a6 /tools/perf/builtin-annotate.c | |
| parent | cd84c2ac6d6425dd4d1b80a2231e534b9b03df18 (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-annotate.c')
| -rw-r--r-- | tools/perf/builtin-annotate.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 1a792990031a..fee663adeea2 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c | |||
| @@ -44,40 +44,6 @@ static int print_line; | |||
| 44 | static unsigned long page_size; | 44 | static unsigned long page_size; |
| 45 | static unsigned long mmap_window = 32; | 45 | static unsigned long mmap_window = 32; |
| 46 | 46 | ||
| 47 | struct ip_event { | ||
| 48 | struct perf_event_header header; | ||
| 49 | u64 ip; | ||
| 50 | u32 pid, tid; | ||
| 51 | }; | ||
| 52 | |||
| 53 | struct mmap_event { | ||
| 54 | struct perf_event_header header; | ||
| 55 | u32 pid, tid; | ||
| 56 | u64 start; | ||
| 57 | u64 len; | ||
| 58 | u64 pgoff; | ||
| 59 | char filename[PATH_MAX]; | ||
| 60 | }; | ||
| 61 | |||
| 62 | struct comm_event { | ||
| 63 | struct perf_event_header header; | ||
| 64 | u32 pid, tid; | ||
| 65 | char comm[16]; | ||
| 66 | }; | ||
| 67 | |||
| 68 | struct fork_event { | ||
| 69 | struct perf_event_header header; | ||
| 70 | u32 pid, ppid; | ||
| 71 | }; | ||
| 72 | |||
| 73 | typedef union event_union { | ||
| 74 | struct perf_event_header header; | ||
| 75 | struct ip_event ip; | ||
| 76 | struct mmap_event mmap; | ||
| 77 | struct comm_event comm; | ||
| 78 | struct fork_event fork; | ||
| 79 | } event_t; | ||
| 80 | |||
| 81 | 47 | ||
| 82 | struct sym_ext { | 48 | struct sym_ext { |
| 83 | struct rb_node node; | 49 | struct rb_node node; |
