diff options
author | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2008-09-29 11:09:15 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 04:38:30 -0400 |
commit | 531d297569014e8f889b167a2d15d72429faead1 (patch) | |
tree | 41bd1b7d66cc454aaab3f699698c75ca0c88c92f /samples/markers | |
parent | e2d3b75dbc486253c910722486ac64087f96c59f (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/markers')
-rw-r--r-- | samples/markers/probe-example.c | 1 |
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) | |||
81 | probe_array[i].probe_func, &probe_array[i]); | 81 | probe_array[i].probe_func, &probe_array[i]); |
82 | printk(KERN_INFO "Number of event b : %u\n", | 82 | printk(KERN_INFO "Number of event b : %u\n", |
83 | atomic_read(&eventb_count)); | 83 | atomic_read(&eventb_count)); |
84 | marker_synchronize_unregister(); | ||
84 | } | 85 | } |
85 | 86 | ||
86 | module_init(probe_init); | 87 | module_init(probe_init); |