]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c065b3aea288c37ca04ad4dc69fd49c9bf39f5b
treef6044a0b2c2a757d56ad47e88cfa662bfc5bf424
parent1f115bbd8e386592f682f0e073c858cfb932f66d
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