From: Mathieu Desnoyers Date: Mon, 29 Sep 2008 15:09:15 +0000 (-0400) Subject: markers: probe example, fix teardown X-Git-Tag: v2.6.28-rc1~78^2~55 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=531d297569014e8f889b167a2d15d72429faead1;p=linux-2.6-omap-h63xx.git markers: probe example, fix teardown Need a marker_synchronize_unregister() before the end of exit() to make sure every probe callers have exited the non preemptible section and thus are not executing the probe code anymore. Signed-off-by: Mathieu Desnoyers Signed-off-by: Ingo Molnar --- diff --git a/samples/markers/probe-example.c b/samples/markers/probe-example.c index c8e099d4d1f..2dfb3b32937 100644 --- a/samples/markers/probe-example.c +++ b/samples/markers/probe-example.c @@ -81,6 +81,7 @@ static void __exit probe_fini(void) probe_array[i].probe_func, &probe_array[i]); printk(KERN_INFO "Number of event b : %u\n", atomic_read(&eventb_count)); + marker_synchronize_unregister(); } module_init(probe_init);