Commit 531d297569014e8f889b167a2d15d72429faead1

Authored by Mathieu Desnoyers
Committed by Ingo Molnar
1 parent e2d3b75dbc

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

samples/markers/probe-example.c
... ... @@ -81,6 +81,7 @@
81 81 probe_array[i].probe_func, &probe_array[i]);
82 82 printk(KERN_INFO "Number of event b : %u\n",
83 83 atomic_read(&eventb_count));
  84 + marker_synchronize_unregister();
84 85 }
85 86  
86 87 module_init(probe_init);