]> Gentwo Git Trees - linux/.git/commit
fgraph: Remove coarse PID filtering from graph_entry()
authorShengming Hu <hu.shengming@zte.com.cn>
Wed, 26 Nov 2025 09:35:52 +0000 (17:35 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 26 Nov 2025 20:41:35 +0000 (15:41 -0500)
commitc264534c394a291495168dbf70094a89717e9023
tree229e52fb5b1b6519154dd766c97a651c29776d8f
parent1650a1b6cb1ae6cb99bb4fce21b30ebdf9fc238e
fgraph: Remove coarse PID filtering from graph_entry()

With PID filtering working via ftrace_pids_enabled() and fgraph_pid_func,
the coarse-grained ftrace_trace_task() check in graph_entry() is obsolete.

It was only a fallback for uninitialized op->private (now fixed), and its
removal ensures consistent PID filtering with standard function tracing.

Also remove unused ftrace_trace_task() definition from trace.h.

Cc: <wang.yaxin@zte.com.cn>
Cc: <mhiramat@kernel.org>
Cc: <mark.rutland@arm.com>
Cc: <mathieu.desnoyers@efficios.com>
Cc: <zhang.run@zte.com.cn>
Cc: <yang.yang29@zte.com.cn>
Link: https://patch.msgid.link/20251126173552333XoJZN20143fWbsdTEtWoU@zte.com.cn
Signed-off-by: Shengming Hu <hu.shengming@zte.com.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.h
kernel/trace/trace_functions_graph.c