* [PATCH] ftrace: adding the missing parameter descriptions of unregister_ftrace_direct
@ 2024-05-28 0:50 MarileneGarcia
2024-06-04 23:23 ` Marilene Andrade Garcia
2024-06-06 2:09 ` Steven Rostedt
0 siblings, 2 replies; 3+ messages in thread
From: MarileneGarcia @ 2024-05-28 0:50 UTC (permalink / raw)
To: Steven Rostedt, Masami Hiramatsu, Mark Rutland, Mathieu Desnoyers
Cc: MarileneGarcia, Shuah Khan, Javier Carrasco, linux-kernel,
linux-trace-kernel
Adding the description of the parameters addr and free_filters
of the function unregister_ftrace_direct.
Signed-off-by: MarileneGarcia <marilene.agarcia@gmail.com>
---
Hello,
These changes fix the following compiler warnings of the function
unregister_ftrace_direct.
The warnings happen using GCC compiler, enabling the ftrace related
configs and using the command 'make W=1'.
kernel/trace/ftrace.c:5489: warning: Function parameter or struct member
'addr' not described in 'unregister_ftrace_direct'
kernel/trace/ftrace.c:5489: warning: Function parameter or struct member
'free_filters' not described in 'unregister_ftrace_direct'
kernel/trace/ftrace.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 65208d3b5ed9..6062e4ce1957 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -5475,6 +5475,8 @@ EXPORT_SYMBOL_GPL(register_ftrace_direct);
* unregister_ftrace_direct - Remove calls to custom trampoline
* previously registered by register_ftrace_direct for @ops object.
* @ops: The address of the struct ftrace_ops object
+ * @addr: The address of the trampoline to call at @ops functions
+ * @free_filters: non zero to remove all filters for the ftrace_ops
*
* This is used to remove a direct calls to @addr from the nop locations
* of the functions registered in @ops (with by ftrace_set_filter_ip
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ftrace: adding the missing parameter descriptions of unregister_ftrace_direct
2024-05-28 0:50 [PATCH] ftrace: adding the missing parameter descriptions of unregister_ftrace_direct MarileneGarcia
@ 2024-06-04 23:23 ` Marilene Andrade Garcia
2024-06-06 2:09 ` Steven Rostedt
1 sibling, 0 replies; 3+ messages in thread
From: Marilene Andrade Garcia @ 2024-06-04 23:23 UTC (permalink / raw)
To: Steven Rostedt, Masami Hiramatsu, Mark Rutland, Mathieu Desnoyers
Cc: Shuah Khan, Javier Carrasco, linux-kernel, linux-trace-kernel
On 27/05/2024 21:50, MarileneGarcia wrote:
> Adding the description of the parameters addr and free_filters
> of the function unregister_ftrace_direct.
>
> Signed-off-by: MarileneGarcia <marilene.agarcia@gmail.com>
> ---
> Hello,
> These changes fix the following compiler warnings of the function
> unregister_ftrace_direct.
>
> The warnings happen using GCC compiler, enabling the ftrace related
> configs and using the command 'make W=1'.
>
> kernel/trace/ftrace.c:5489: warning: Function parameter or struct member
> 'addr' not described in 'unregister_ftrace_direct'
>
> kernel/trace/ftrace.c:5489: warning: Function parameter or struct member
> 'free_filters' not described in 'unregister_ftrace_direct'
>
> kernel/trace/ftrace.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
> index 65208d3b5ed9..6062e4ce1957 100644
> --- a/kernel/trace/ftrace.c
> +++ b/kernel/trace/ftrace.c
> @@ -5475,6 +5475,8 @@ EXPORT_SYMBOL_GPL(register_ftrace_direct);
> * unregister_ftrace_direct - Remove calls to custom trampoline
> * previously registered by register_ftrace_direct for @ops object.
> * @ops: The address of the struct ftrace_ops object
> + * @addr: The address of the trampoline to call at @ops functions
> + * @free_filters: non zero to remove all filters for the ftrace_ops
> *
> * This is used to remove a direct calls to @addr from the nop locations
> * of the functions registered in @ops (with by ftrace_set_filter_ip
Hello everyone,
Do you have any feedback to me about the patch?
Thank you,
Marilene
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ftrace: adding the missing parameter descriptions of unregister_ftrace_direct
2024-05-28 0:50 [PATCH] ftrace: adding the missing parameter descriptions of unregister_ftrace_direct MarileneGarcia
2024-06-04 23:23 ` Marilene Andrade Garcia
@ 2024-06-06 2:09 ` Steven Rostedt
1 sibling, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2024-06-06 2:09 UTC (permalink / raw)
To: MarileneGarcia
Cc: Masami Hiramatsu, Mark Rutland, Mathieu Desnoyers, Shuah Khan,
Javier Carrasco, linux-kernel, linux-trace-kernel
On Mon, 27 May 2024 21:50:46 -0300
MarileneGarcia <marilene.agarcia@gmail.com> wrote:
The subject for the tracing subsystem should start with a capital letter,
but it is a bit confusing anyway. Should be:
ftrace: Add missing kerneldoc parameters to unregister_ftrace_direct()
> Adding the description of the parameters addr and free_filters
> of the function unregister_ftrace_direct.
s/Adding/Add/ s/of the/to the/
>
> Signed-off-by: MarileneGarcia <marilene.agarcia@gmail.com>
> ---
> Hello,
> These changes fix the following compiler warnings of the function
> unregister_ftrace_direct.
>
> The warnings happen using GCC compiler, enabling the ftrace related
> configs and using the command 'make W=1'.
>
> kernel/trace/ftrace.c:5489: warning: Function parameter or struct member
> 'addr' not described in 'unregister_ftrace_direct'
>
> kernel/trace/ftrace.c:5489: warning: Function parameter or struct member
> 'free_filters' not described in 'unregister_ftrace_direct'
>
> kernel/trace/ftrace.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
> index 65208d3b5ed9..6062e4ce1957 100644
> --- a/kernel/trace/ftrace.c
> +++ b/kernel/trace/ftrace.c
> @@ -5475,6 +5475,8 @@ EXPORT_SYMBOL_GPL(register_ftrace_direct);
> * unregister_ftrace_direct - Remove calls to custom trampoline
> * previously registered by register_ftrace_direct for @ops object.
> * @ops: The address of the struct ftrace_ops object
> + * @addr: The address of the trampoline to call at @ops functions
This is the unregister function. The above sounds like it will be called
instead of no longer being called.
@addr: The address of the direct function that are called by the @ops functions
> + * @free_filters: non zero to remove all filters for the ftrace_ops
It's a boolean value, there is no zero.
> *
> * This is used to remove a direct calls to @addr from the nop locations
> * of the functions registered in @ops (with by ftrace_set_filter_ip
-- Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-06 2:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-28 0:50 [PATCH] ftrace: adding the missing parameter descriptions of unregister_ftrace_direct MarileneGarcia
2024-06-04 23:23 ` Marilene Andrade Garcia
2024-06-06 2:09 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox