summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>2008-09-29 11:09:15 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 10:38:30 +0200
commit531d297569014e8f889b167a2d15d72429faead1 (patch)
tree41bd1b7d66cc454aaab3f699698c75ca0c88c92f /samples
parente2d3b75dbc486253c910722486ac64087f96c59f (diff)
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 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);