All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Tracepoint API doc update: data argument
@ 2014-03-11  1:04 Mathieu Desnoyers
  2014-03-11  1:04 ` [PATCH 2/2] Tracepoint API doc update: tracepoint_probe_register() return value Mathieu Desnoyers
  2014-03-11 23:34 ` [PATCH 1/2] Tracepoint API doc update: data argument Steven Rostedt
  0 siblings, 2 replies; 6+ messages in thread
From: Mathieu Desnoyers @ 2014-03-11  1:04 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: linux-kernel, Mathieu Desnoyers, Ingo Molnar, Frederic Weisbecker,
	Andrew Morton

Describe the @data argument (probe private data).

Fixes: 38516ab59fbc "tracing: Let tracepoints have data passed to tracepoint callbacks"
CC: Steven Rostedt <rostedt@goodmis.org>
CC: Ingo Molnar <mingo@kernel.org>
CC: Frederic Weisbecker <fweisbec@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
---
 kernel/tracepoint.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c
index 444e416..49cb94e 100644
--- a/kernel/tracepoint.c
+++ b/kernel/tracepoint.c
@@ -376,6 +376,7 @@ tracepoint_add_probe(const char *name, void *probe, void *data)
  * tracepoint_probe_register -  Connect a probe to a tracepoint
  * @name: tracepoint name
  * @probe: probe handler
+ * @data: probe private data
  *
  * Returns 0 if ok, error value on error.
  * The probe address must at least be aligned on the architecture pointer size.
@@ -424,6 +425,7 @@ tracepoint_remove_probe(const char *name, void *probe, void *data)
  * tracepoint_probe_unregister -  Disconnect a probe from a tracepoint
  * @name: tracepoint name
  * @probe: probe function pointer
+ * @data: probe private data
  *
  * We do not need to call a synchronize_sched to make sure the probes have
  * finished running before doing a module unload, because the module unload
@@ -464,6 +466,7 @@ static void tracepoint_add_old_probes(void *old)
  * tracepoint_probe_register_noupdate -  register a probe but not connect
  * @name: tracepoint name
  * @probe: probe handler
+ * @data: probe private data
  *
  * caller must call tracepoint_probe_update_all()
  */
@@ -488,6 +491,7 @@ EXPORT_SYMBOL_GPL(tracepoint_probe_register_noupdate);
  * tracepoint_probe_unregister_noupdate -  remove a probe but not disconnect
  * @name: tracepoint name
  * @probe: probe function pointer
+ * @data: probe private data
  *
  * caller must call tracepoint_probe_update_all()
  */
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-12  1:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11  1:04 [PATCH 1/2] Tracepoint API doc update: data argument Mathieu Desnoyers
2014-03-11  1:04 ` [PATCH 2/2] Tracepoint API doc update: tracepoint_probe_register() return value Mathieu Desnoyers
2014-03-11 23:34 ` [PATCH 1/2] Tracepoint API doc update: data argument Steven Rostedt
2014-03-12  0:52   ` Mathieu Desnoyers
2014-03-12  1:14     ` Steven Rostedt
2014-03-12  1:30       ` Mathieu Desnoyers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.