perf: Honour event state for aux stream data
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 18 Jan 2010 08:12:32 +0000 (09:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 25 Jan 2010 18:49:46 +0000 (10:49 -0800)
commit9607f0688fe1db11f19ff43940fe4697845ec9da
tree0fd2df7b7af5878a11c8aa97dd4a0eb3ee17ff44
parentb0a93920c4117933657cb5572157ce502ef0fc57
perf: Honour event state for aux stream data

commit 22e190851f8709c48baf00ed9ce6144cdc54d025 upstream.

Anton reported that perf record kept receiving events even after calling
ioctl(PERF_EVENT_IOC_DISABLE). It turns out that FORK,COMM and MMAP
events didn't respect the disabled state and kept flowing in.

Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Tested-by: Anton Blanchard <anton@samba.org>
LKML-Reference: <1263459187.4244.265.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/perf_event.c