Skip to content

Commit

Permalink
markers: probe example, fix teardown
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Mathieu Desnoyers authored and Ingo Molnar committed Oct 14, 2008
1 parent e2d3b75 commit 531d297
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/markers/probe-example.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 531d297

Please sign in to comment.