perf: Simplify the ring-buffer logic: make perf_buffer_alloc() do everything needed
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 28 May 2010 17:41:35 +0000 (19:41 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jun 2010 09:12:35 +0000 (11:12 +0200)
commitd57e34fdd60be7ffd0b1d86bfa1a553df86b7172
treef6044a0b2c2a757d56ad47e88cfa662bfc5bf424
parentca5135e6b4a3cbc7e187737520fbc4b508f6f7a2
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>
include/linux/perf_event.h
kernel/perf_event.c