public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] function_graph: no need to invoke the function call_filter_check_discard
@ 2024-10-10  3:58 Donglin Peng
  2024-10-10 23:36 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Donglin Peng @ 2024-10-10  3:58 UTC (permalink / raw)
  To: rostedt
  Cc: mhiramat, zhengyejian, sfr, mark.rutland, mathieu.desnoyers,
	linux-trace-kernel, linux-kernel, Donglin Peng

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;
 }
-- 
2.25.1


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

* Re: [PATCH] function_graph: no need to invoke the function call_filter_check_discard
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2024-10-10 23:36 UTC (permalink / raw)
  To: Donglin Peng
  Cc: mhiramat, zhengyejian, sfr, mark.rutland, mathieu.desnoyers,
	linux-trace-kernel, linux-kernel

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

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

end of thread, other threads:[~2024-10-10 23:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox