projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2d3b75
)
markers: probe example, fix teardown
author
Mathieu Desnoyers
<mathieu.desnoyers@polymtl.ca>
Mon, 29 Sep 2008 15:09:15 +0000
(11:09 -0400)
committer
Ingo Molnar
<mingo@elte.hu>
Tue, 14 Oct 2008 08:38:30 +0000
(10:38 +0200)
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>
samples/markers/probe-example.c
patch
|
blob
|
history
diff --git
a/samples/markers/probe-example.c
b/samples/markers/probe-example.c
index
c8e099d
..
2dfb3b3
100644
(file)
--- 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);