]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:53 +0000 (11:22 -0700)
commit5842e8e202ecef054e6a769e194dbf9c17b81569
tree6b8c8a83dad4ba05dd20d23765ef8f43219b156d
parentca2455ec0673fcde16f81ee0f585c4edc2e076e7
perf_events: Fix races and clean up perf_event and perf_mmap_data interaction

commit ac9721f3f54b27a16c7e1afb2481e7ee95a70318 upstream.

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>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/perf_event.h
kernel/perf_event.c