From: Li Zefan Date: Mon, 24 Aug 2009 04:19:47 +0000 (+0800) Subject: tracing/profile: fix profile_disable vs module_unload X-Git-Tag: v2.6.32-rc1~654^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=558e6547e4b8a2b13608a24a9d3679802f91c4c7;p=pandora-kernel.git tracing/profile: fix profile_disable vs module_unload If the correspoding module is unloaded before ftrace_profile_disable() is called, event->profile_disable() won't be called, which can cause oops: # insmod trace-events-sample.ko # perf record -f -a -e sample:foo_bar sleep 3 & # sleep 1 # rmmod trace_events_sample # insmod trace-events-sample.ko OOPS! Signed-off-by: Li Zefan LKML-Reference: <4A9214E3.2070807@cn.fujitsu.com> Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed