From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Linux Trace Kernel <linux-trace-kernel@vger.kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Subject: Re: [PATCH] ftrace: Disable preemption in the tracepoint callbacks handling filtered pids
Date: Wed, 4 Mar 2026 10:48:33 +0900 [thread overview]
Message-ID: <20260304104833.7b157f3cd2ff911cbcf77660@kernel.org> (raw)
In-Reply-To: <20260303093949.4210e854@gandalf.local.home>
On Tue, 3 Mar 2026 09:39:49 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:
> On Tue, 3 Mar 2026 13:17:06 +0900
> Masami Hiramatsu (Google) <mhiramat@kernel.org> wrote:
>
> > diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
> > index 9928da636c9d..3b3aaf4831e9 100644
> > --- a/kernel/trace/trace_events.c
> > +++ b/kernel/trace/trace_events.c
> > @@ -1039,6 +1039,7 @@ event_filter_pid_sched_process_exit(void *data, struct task_struct *task)
> > struct trace_pid_list *pid_list;
> > struct trace_array *tr = data;
> >
> > + guard(preempt)();
> > pid_list = rcu_dereference_raw(tr->filtered_pids);
> > trace_filter_add_remove_task(pid_list, NULL, task);
> >
> > @@ -1054,6 +1055,7 @@ event_filter_pid_sched_process_fork(void *data,
> > struct trace_pid_list *pid_list;
> > struct trace_array *tr = data;
> >
> > + guard(preempt)();
> > pid_list = rcu_dereference_sched(tr->filtered_pids);
> > trace_filter_add_remove_task(pid_list, self, task);
> >
>
> Yep. I can make them two different patches. Do you want me to take this as
> your patch? I'll need a SoB from you then.
I think we can combine those since it fixes the same commit.
(just for bisectability)
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Thank you,
>
> -- Steve
--
Masami Hiramatsu (Google) <mhiramat@kernel.org>
next prev parent reply other threads:[~2026-03-04 1:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 2:35 [PATCH] ftrace: Disable preemption in the tracepoint callbacks handling filtered pids Steven Rostedt
2026-03-03 4:17 ` Masami Hiramatsu
2026-03-03 14:39 ` Steven Rostedt
2026-03-04 1:48 ` Masami Hiramatsu [this message]
2026-03-04 2:13 ` Steven Rostedt
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=20260304104833.7b157f3cd2ff911cbcf77660@kernel.org \
--to=mhiramat@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=rostedt@goodmis.org \
/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