[for-linus][PATCH 0/2] ftrace: Fixes for v6.18

From: Steven Rostedt

Date: Wed Nov 26 2025 - 20:01:33 EST


ftrace fixes for v6.18:

- Fix regression of pid filtering of function graph tracer

When the function graph tracer allowed multiple instances of
graph tracing using subops, the filtering by pid broke.

The ftrace_ops->private that was used for pid filtering wasn't
updated on creation.

The wrong function entry callback was used when pid filtering was
enabled when the function graph tracer started, which meant that
the pid filtering wasn't happening.


git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
ftrace/fixes

Head SHA1: 1650a1b6cb1ae6cb99bb4fce21b30ebdf9fc238e


Shengming Hu (2):
fgraph: Initialize ftrace_ops->private for function graph ops
fgraph: Check ftrace_pids_enabled on registration for early filtering

----
kernel/trace/fgraph.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)