Tracepoint API doc update: data argument
Mathieu Desnoyers
reviewerPATCH 1/2 Tracepoint API doc update: data argument
Describe the @data argument (probe private data).
--- kernel/tracepoint.c | 4 ++++ 1 file changed, 4 insertions(+)
kernel/tracepoint.c +4 -0
@@ -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() */
Signature · 1 line
1.7.10.4
Mathieu Desnoyers
reviewerPATCH 2/2 Tracepoint API doc update: tracepoint_probe_register() return value
Describe the return values of tracepoint_probe_register(), including -ENODEV added by commit:
Author: Steven Rostedt <[email protected]>
tracing: Warn if a tracepoint is not set via debugfs
--- kernel/tracepoint.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
kernel/tracepoint.c +11 -1
@@ -378,7 +378,17 @@ tracepoint_add_probe(const char *name, void *probe, void *data)* @probe: probe handler * @data: probe private data * -* Returns 0 if ok, error value on error. +* Returns: +* - 0 if the probe was successfully registered, and tracepoint +* callsites are currently loaded for that probe, +* - -ENODEV if the probe was successfully registered, but no tracepoint +* callsite is currently loaded for that probe, +* - other negative error value on error. +* +* When tracepoint_probe_register() returns either 0 or -ENODEV, +* parameters @name, @probe, and @data may be used by the tracepoint +* infrastructure until the probe is unregistered. +* * The probe address must at least be aligned on the architecture pointer size. */ int tracepoint_probe_register (const char *name,void *probe,void *data)
Signature · 1 line
1.7.10.4
Steven Rostedt
maintainerQuoted 7 lines · On Mon, 10 Mar 2014 21:04:57 -0400 Mathieu Desnoyers…
Describe the @data argument (probe private data).
Fixes 38516ab59fbc "tracing: Let tracepoints have data passed to tracepoint callbacks"CC Steven Rostedt <[email protected]>CC Ingo Molnar <[email protected]>CC Frederic Weisbecker <[email protected]>CC Andrew Morton <[email protected]>
No signed-off-by.
-- Steve
Mathieu Desnoyers
reviewer----- Original Message -----
Quoted 12 lines
From: "Steven Rostedt" <[email protected]>
To: "Mathieu Desnoyers" <[email protected]>
Cc: [email protected], "Ingo Molnar" <[email protected]>, "Frederic Weisbecker" <[email protected]>, "Andrew Morton" <[email protected]>
Sent: Tuesday, March 11, 2014 7:34:50 PM
Subject: Re: [PATCH 1/2] Tracepoint API doc update: data argumentQuoted 2 lines · On Mon, 10 Mar 2014 21:04:57 -0400 Mathieu Desnoyers…
Describe the @data argument (probe private data).
Quoted 8 lines
Quoted 6 lines
Fixes 38516ab59fbc "tracing: Let tracepoints have data passed totracepoint callbacks"
CC: Steven Rostedt <[email protected]>
CC: Ingo Molnar <[email protected]>
CC: Frederic Weisbecker <[email protected]>
CC: Andrew Morton <[email protected]>No signed-off-by.
Hi Steven,
I'm curious to understand the reason of this "no signed-off-by" on a trivial patch that fixes the missing DocBook comments for one of your previous commits that has been upstream for a few years. What am I missing ? Perhaps you meant this reply for my other documentation update patch (2/2) ?
Thanks,
Mathieu
Quoted 4 lines
-- Steve
Signature · 3 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com
Steven Rostedt
maintainerQuoted 20 lines · On Wed, 12 Mar 2014 00:52:33 +0000 (UTC) Mathieu Desnoyers…
----- Original Message -----
Quoted 19 lines
From: "Steven Rostedt" <[email protected]>
To: "Mathieu Desnoyers" <[email protected]>
Cc: [email protected], "Ingo Molnar" <[email protected]>, "Frederic Weisbecker" <[email protected]>, "Andrew Morton" <[email protected]>
Sent: Tuesday, March 11, 2014 7:34:50 PM
Subject: Re: [PATCH 1/2] Tracepoint API doc update: data argumentQuoted 8 lines · On Mon, 10 Mar 2014 21:04:57 -0400 Mathieu Desnoyers…
Describe the @data argument (probe private data).
Fixes 38516ab59fbc "tracing: Let tracepoints have data passed totracepoint callbacks"
CC: Steven Rostedt <[email protected]>
CC: Ingo Molnar <[email protected]>
CC: Frederic Weisbecker <[email protected]>
CC: Andrew Morton <[email protected]>
Quoted 9 lines
Quoted 1 line
No signed-off-by.
Hi Steven,
I'm curious to understand the reason of this "no signed-off-by" on a trivial patch that fixes the missing DocBook comments for one of your previous commits that has been upstream for a few years. What am I missing ? Perhaps you meant this reply for my other documentation update patch (2/2) ?
I mean, my scripts wont accept a patch that the author never added their signed-off-by to.
In other words, resubmit, and add your own signed-off-by that happens to be missing from this patch.
-- Steve
Mathieu Desnoyers
reviewer----- Original Message -----
Quoted 43 lines
From: "Steven Rostedt" <[email protected]>
To: "Mathieu Desnoyers" <[email protected]>
Cc: [email protected], "Ingo Molnar" <[email protected]>, "Frederic Weisbecker" <[email protected]>, "Andrew Morton" <[email protected]>
Sent: Tuesday, March 11, 2014 9:14:02 PM
Subject: Re: [PATCH 1/2] Tracepoint API doc update: data argumentQuoted 23 lines · On Wed, 12 Mar 2014 00:52:33 +0000 (UTC) Mathieu Desnoyers…
----- Original Message -----
Quoted 13 lines
From: "Steven Rostedt" <[email protected]>
To: "Mathieu Desnoyers" <[email protected]>
Cc: [email protected], "Ingo Molnar" <[email protected]>, "Frederic Weisbecker" <[email protected]>,
"Andrew Morton" <[email protected]>
Sent: Tuesday, March 11, 2014 7:34:50 PM
Subject: Re: [PATCH 1/2] Tracepoint API doc update: data argumentQuoted 2 lines · On Mon, 10 Mar 2014 21:04:57 -0400 Mathieu Desnoyers…
Describe the @data argument (probe private data).
Quoted 8 lines
Quoted 6 lines
Fixes 38516ab59fbc "tracing: Let tracepoints have data passed totracepoint callbacks"
CC: Steven Rostedt <[email protected]>
CC: Ingo Molnar <[email protected]>
CC: Frederic Weisbecker <[email protected]>
CC: Andrew Morton <[email protected]>No signed-off-by.
Quoted 9 lines
Hi Steven,
I'm curious to understand the reason of this "no signed-off-by" on a trivial
patch that fixes the missing DocBook comments for one of your previous commits that has been upstream for a few years. What am I missing ? Perhaps you meant this reply for my other documentation update patch (2/2) ?
Quoted 5 lines
I mean, my scripts wont accept a patch that the author never added their signed-off-by to.
In other words, resubmit, and add your own signed-off-by that happens to be missing from this patch.
Oh, sorry, I missed that. Will do.
Thanks,
Mathieu
Quoted 3 lines
-- Steve
Signature · 3 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com