public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Donglin Peng <dolinux.peng@gmail.com>
Cc: mhiramat@kernel.org, zhengyejian@huaweicloud.com,
	sfr@canb.auug.org.au, mark.rutland@arm.com,
	mathieu.desnoyers@efficios.com,
	linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] function_graph: no need to invoke the function call_filter_check_discard
Date: Thu, 10 Oct 2024 19:36:26 -0400	[thread overview]
Message-ID: <20241010193626.76e7ff33@gandalf.local.home> (raw)
In-Reply-To: <20241010035826.567827-1-dolinux.peng@gmail.com>

On Thu, 10 Oct 2024 11:58:26 +0800
Donglin Peng <dolinux.peng@gmail.com> wrote:

> From: Donglin Peng <pengdonglin@xiaomi.com>
> 
> The function call_filter_check_discard has been removed in the
> commit [1].
> 
> [1] https://lore.kernel.org/all/20240911010026.2302849-1-zhengyejian@huaweicloud.com/
> 
> Signed-off-by: Donglin Peng <dolinux.peng@gmail.com>
> ---
>  kernel/trace/trace_functions_graph.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
> index 3b210e6bcd70..98f347c049d2 100644
> --- a/kernel/trace/trace_functions_graph.c
> +++ b/kernel/trace/trace_functions_graph.c
> @@ -148,8 +148,7 @@ int __trace_graph_retaddr_entry(struct trace_array *tr,
>  	entry->graph_ent.func = trace->func;
>  	entry->graph_ent.depth = trace->depth;
>  	entry->graph_ent.retaddr = retaddr;
> -	if (!call_filter_check_discard(call, entry, buffer, event))
> -		trace_buffer_unlock_commit_nostack(buffer, event);
> +	trace_buffer_unlock_commit_nostack(buffer, event);
>  
>  	return 1;
>  }

This still fails:

kernel/trace/trace_functions_graph.c:140:27: error: unused variable 'call' [-Werror,-Wunused-variable]
  140 |         struct trace_event_call *call = &event_fgraph_retaddr_entry;
      |                                  ^~~~
1 error generated.

I'll just fix it up.

Thanks,

-- Steve

      reply	other threads:[~2024-10-10 23:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-10  3:58 [PATCH] function_graph: no need to invoke the function call_filter_check_discard Donglin Peng
2024-10-10 23:36 ` Steven Rostedt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241010193626.76e7ff33@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=dolinux.peng@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@kernel.org \
    --cc=sfr@canb.auug.org.au \
    --cc=zhengyejian@huaweicloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox