diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-05-28 13:41:35 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-06-09 05:12:35 -0400 |
commit | d57e34fdd60be7ffd0b1d86bfa1a553df86b7172 (patch) | |
tree | f6044a0b2c2a757d56ad47e88cfa662bfc5bf424 /include/linux/perf_event.h | |
parent | ca5135e6b4a3cbc7e187737520fbc4b508f6f7a2 (diff) |
perf: Simplify the ring-buffer logic: make perf_buffer_alloc() do everything needed
Currently there are perf_buffer_alloc() + perf_buffer_init() + some
separate bits, fold it all into a single perf_buffer_alloc() and only
leave the attachment to the event separate.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 2a0da021c23f..441992a9775c 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -602,6 +602,8 @@ enum perf_event_active_state { | |||
602 | 602 | ||
603 | struct file; | 603 | struct file; |
604 | 604 | ||
605 | #define PERF_BUFFER_WRITABLE 0x01 | ||
606 | |||
605 | struct perf_buffer { | 607 | struct perf_buffer { |
606 | atomic_t refcount; | 608 | atomic_t refcount; |
607 | struct rcu_head rcu_head; | 609 | struct rcu_head rcu_head; |