diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-05-28 19:41:35 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-06-09 11:12:35 +0200 |
commit | d57e34fdd60be7ffd0b1d86bfa1a553df86b7172 (patch) | |
tree | f6044a0b2c2a757d56ad47e88cfa662bfc5bf424 /include | |
parent | ca5135e6b4a3cbc7e187737520fbc4b508f6f7a2 (diff) | |
download | linux-3.10-d57e34fdd60be7ffd0b1d86bfa1a553df86b7172.tar.gz linux-3.10-d57e34fdd60be7ffd0b1d86bfa1a553df86b7172.tar.bz2 linux-3.10-d57e34fdd60be7ffd0b1d86bfa1a553df86b7172.zip |
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')
-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 2a0da021c23..441992a9775 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -602,6 +602,8 @@ enum perf_event_active_state { struct file; +#define PERF_BUFFER_WRITABLE 0x01 + struct perf_buffer { atomic_t refcount; struct rcu_head rcu_head; |