summaryrefslogtreecommitdiffstats
path: root/include/linux/marker.h
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2008-11-27 16:14:44 +0800
committerIngo Molnar <mingo@elte.hu>2008-11-28 16:47:41 +0100
commita838c2ec6ea1f18431da74dfe4978c57355b95f3 (patch)
treec51852ff62ec383c27e21f318f5e3180f141b885 /include/linux/marker.h
parentc7cc77307669336a08928ab8668bdb3f3bcc021b (diff)
downloadblackbird-obmc-linux-a838c2ec6ea1f18431da74dfe4978c57355b95f3.tar.gz
blackbird-obmc-linux-a838c2ec6ea1f18431da74dfe4978c57355b95f3.zip
markers: comment marker_synchronize_unregister() on data dependency
Add document and comments on marker_synchronize_unregister(): it should be called before freeing resources that the probes depend on. Based on comments from Lai Jiangshan and Mathieu Desnoyers. Signed-off-by: Wu Fengguang <wfg@linux.intel.com> Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/marker.h')
-rw-r--r--include/linux/marker.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/marker.h b/include/linux/marker.h
index 34c14bc957f5..b85e74ca782f 100644
--- a/include/linux/marker.h
+++ b/include/linux/marker.h
@@ -211,8 +211,10 @@ extern void *marker_get_private_data(const char *name, marker_probe_func *probe,
/*
* marker_synchronize_unregister must be called between the last marker probe
- * unregistration and the end of module exit to make sure there is no caller
- * executing a probe when it is freed.
+ * unregistration and the first one of
+ * - the end of module exit function
+ * - the free of any resource used by the probes
+ * to ensure the code and data are valid for any possibly running probes.
*/
#define marker_synchronize_unregister() synchronize_sched()
OpenPOWER on IntegriCloud