Commit
531d297569014e8f889b167a2d15d72429faead1
Exists in
master
and in
20 other branches
dlt-processor-sdk-linux-03.00.00.04, newt-ti-linux-3.12.y, processor-sdk-linux-01.00.00, processor-sdk-linux-02.00.01, smarc-ti-linux-3.12.10, smarc-ti-linux-3.12.y, smarc-ti-linux-3.14.y, smarc-ti-linux-3.15.y, smarc-ti-lsk-linux-4.1.y, smarct3x-processor-sdk-04.01.00.06, smarct3x-processor-sdk-linux-02.00.01, smarct3x-processor-sdk-linux-03.00.00.04, smarct4x-800-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-04.01.00.06, smarct4x-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-linux-03.00.00.04, ti-linux-3.12.y, ti-linux-3.14.y, ti-linux-3.15.y, ti-lsk-linux-4.1.y
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
... |
... |
@@ -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); |