perf_events: Fix races and clean up perf_event and perf_mmap_data interaction
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 27 May 2010 10:54:41 +0000 (12:54 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 31 May 2010 06:46:08 +0000 (08:46 +0200)
commitac9721f3f54b27a16c7e1afb2481e7ee95a70318
treea9f21d60c7c4c1910696553a6f8273edcca03c64
parent67a3e12b05e055c0415c556a315a3d3eb637e29e
perf_events: Fix races and clean up perf_event and perf_mmap_data interaction

In order to move toward separate buffer objects, rework the whole
perf_mmap_data construct to be a more self-sufficient entity, one
with its own lifetime rules.

This greatly sanitizes the whole output redirection code, which
was riddled with bugs and races.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: <stable@kernel.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h
kernel/perf_event.c