Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1585825 > unrolled thread

[PATCH] tracing: Fix code comment for ftrace_ops_get_func

Started byChunyu Hu <chuhu@redhat.com>
First post2017-02-22 01:30 +0100
Last post2017-02-27 17:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] tracing: Fix code comment for ftrace_ops_get_func Chunyu Hu <chuhu@redhat.com> - 2017-02-22 01:30 +0100
    Re: [PATCH] tracing: Fix code comment for ftrace_ops_get_func Steven Rostedt <rostedt@goodmis.org> - 2017-02-27 17:10 +0100

#1585825 — [PATCH] tracing: Fix code comment for ftrace_ops_get_func

FromChunyu Hu <chuhu@redhat.com>
Date2017-02-22 01:30 +0100
Subject[PATCH] tracing: Fix code comment for ftrace_ops_get_func
Message-ID<tdsYF-1Eq-13@gated-at.bofh.it>
There is no function 'ftrace_ops_recurs_func' existing in the code, it
should be ftrace_ops_assist_func. Fix the comment to avoid misleading.

Signed-off-by: Chunyu Hu <chuhu@redhat.com>
---
 kernel/trace/ftrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 0c06093..fd84f2e 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -5487,7 +5487,7 @@ static void ftrace_ops_assist_func(unsigned long ip, unsigned long parent_ip,
  * Normally the mcount trampoline will call the ops->func, but there
  * are times that it should not. For example, if the ops does not
  * have its own recursion protection, then it should call the
- * ftrace_ops_recurs_func() instead.
+ * ftrace_ops_assist_func() instead.
  *
  * Returns the function that the trampoline should call for @ops.
  */
-- 
1.8.3.1

[toc] | [next] | [standalone]


#1588780

FromSteven Rostedt <rostedt@goodmis.org>
Date2017-02-27 17:10 +0100
Message-ID<tfw26-7YC-11@gated-at.bofh.it>
In reply to#1585825
On Wed, 22 Feb 2017 08:29:26 +0800
Chunyu Hu <chuhu@redhat.com> wrote:

> There is no function 'ftrace_ops_recurs_func' existing in the code, it
> should be ftrace_ops_assist_func. Fix the comment to avoid misleading.

Applied, thanks!

I'm not sure it will go in this merge window. It might, I'll have to
see what else there is.

-- Steve

> 
> Signed-off-by: Chunyu Hu <chuhu@redhat.com>
> ---
>  kernel/trace/ftrace.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
> index 0c06093..fd84f2e 100644
> --- a/kernel/trace/ftrace.c
> +++ b/kernel/trace/ftrace.c
> @@ -5487,7 +5487,7 @@ static void ftrace_ops_assist_func(unsigned long ip, unsigned long parent_ip,
>   * Normally the mcount trampoline will call the ops->func, but there
>   * are times that it should not. For example, if the ops does not
>   * have its own recursion protection, then it should call the
> - * ftrace_ops_recurs_func() instead.
> + * ftrace_ops_assist_func() instead.
>   *
>   * Returns the function that the trampoline should call for @ops.
>   */

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web