diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-03-30 13:07:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:30:42 -0400 |
commit | 5ed00415e304203a0a9dcaef226d6d3f1106070e (patch) | |
tree | 5e1d53fcae6ea973dfb61972f38c269a8fe095bc /include/linux/perf_counter.h | |
parent | 78d613eb129fc4edf0e2cabfcc6a4c5285482d21 (diff) |
perf_counter: re-arrange the perf_event_type
Breaks ABI yet again :-)
Change the event type so that [0, 2^31-1] are regular event types, but
[2^31, 2^32-1] forms a bitmask for overflow events.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Paul Mackerras <paulus@samba.org>
Orig-LKML-Reference: <20090330171024.047961770@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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 037a81145aca..edf5bfb7ff51 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -210,13 +210,15 @@ struct perf_event_header { | |||
210 | }; | 210 | }; |
211 | 211 | ||
212 | enum perf_event_type { | 212 | enum perf_event_type { |
213 | PERF_EVENT_IP = 0, | 213 | |
214 | PERF_EVENT_GROUP = 1, | 214 | PERF_EVENT_GROUP = 1, |
215 | 215 | ||
216 | PERF_EVENT_MMAP = 2, | 216 | PERF_EVENT_MMAP = 2, |
217 | PERF_EVENT_MUNMAP = 3, | 217 | PERF_EVENT_MUNMAP = 3, |
218 | 218 | ||
219 | __PERF_EVENT_TID = 0x100, | 219 | PERF_EVENT_OVERFLOW = 1UL << 31, |
220 | __PERF_EVENT_IP = 1UL << 30, | ||
221 | __PERF_EVENT_TID = 1UL << 29, | ||
220 | }; | 222 | }; |
221 | 223 | ||
222 | #ifdef __KERNEL__ | 224 | #ifdef __KERNEL__ |