diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-03-25 07:30:23 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:30:33 -0400 |
commit | 5c1481943250ab65fa5130e05ec479c93216e9f7 (patch) | |
tree | 8fa6bb7e95a91b03e54fc01af6f9192a4eb7d4a6 /include/linux/perf_counter.h | |
parent | b9cacc7bf193df16532bfa7d7ca77fe50fc3c2e6 (diff) |
perf_counter: output objects
Provide a {type,size} header for each output entry.
This should provide extensible output, and the ability to mix multiple streams.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Orig-LKML-Reference: <20090325113316.831607932@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r-- | include/linux/perf_counter.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 48212c15b7d6..c256635377d4 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -156,6 +156,16 @@ struct perf_counter_mmap_page { | |||
156 | __u32 data_head; /* head in the data section */ | 156 | __u32 data_head; /* head in the data section */ |
157 | }; | 157 | }; |
158 | 158 | ||
159 | struct perf_event_header { | ||
160 | __u32 type; | ||
161 | __u32 size; | ||
162 | }; | ||
163 | |||
164 | enum perf_event_type { | ||
165 | PERF_EVENT_IP = 0, | ||
166 | PERF_EVENT_GROUP = 1, | ||
167 | }; | ||
168 | |||
159 | #ifdef __KERNEL__ | 169 | #ifdef __KERNEL__ |
160 | /* | 170 | /* |
161 | * Kernel-internal data types and definitions: | 171 | * Kernel-internal data types and definitions: |
@@ -260,6 +270,7 @@ struct perf_counter { | |||
260 | struct list_head list_entry; | 270 | struct list_head list_entry; |
261 | struct list_head event_entry; | 271 | struct list_head event_entry; |
262 | struct list_head sibling_list; | 272 | struct list_head sibling_list; |
273 | int nr_siblings; | ||
263 | struct perf_counter *group_leader; | 274 | struct perf_counter *group_leader; |
264 | const struct hw_perf_counter_ops *hw_ops; | 275 | const struct hw_perf_counter_ops *hw_ops; |
265 | 276 | ||