]> git.karo-electronics.de Git - mv-sheeva.git/commit
perf_events, trace: Fix probe unregister race
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 21 May 2010 10:31:09 +0000 (12:31 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 31 May 2010 06:46:09 +0000 (08:46 +0200)
commit3771f0771154675d4a0ca780be2411f3cc357208
tree106512f307e2aa0a89f92c01598d5fa75903af47
parent8a49542c0554af7d0073aac0ee73ee65b807ef34
perf_events, trace: Fix probe unregister race

tracepoint_probe_unregister() does not synchronize against the probe
callbacks, so do that explicitly. This properly serializes the callbacks
and the free of the data used therein.

Also, use this_cpu_ptr() where possible.

Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1274438476.1674.1702.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/trace/ftrace.h
kernel/trace/trace_event_perf.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_syscalls.c