summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>2008-09-29 17:09:15 +0200
committerIngo Molnar <mingo@elte.hu>2008-10-14 10:38:30 +0200
commit531d297569014e8f889b167a2d15d72429faead1 (patch)
tree41bd1b7d66cc454aaab3f699698c75ca0c88c92f /samples
parentmarkers: fix unregister bug and reenter bug, cleanup (diff)
downloadlinux-531d297569014e8f889b167a2d15d72429faead1.tar.xz
linux-531d297569014e8f889b167a2d15d72429faead1.zip
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 <mathieu.desnoyers@polymtl.ca> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'samples')
-rw-r--r--samples/markers/probe-example.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/markers/probe-example.c b/samples/markers/probe-example.c
index c8e099d4d1fd..2dfb3b32937e 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);