mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Can we switch the tracepoints from preempt protection to rcu_read_lock?
@ 2024-12-06 17:07 Steven Rostedt
  2024-12-10 19:03 ` Mathieu Desnoyers
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2024-12-06 17:07 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: LKML, Sebastian Andrzej Siewior, linux-rt-users

Hi Mathieu,

Sebastian brought up a point at our RT Stable meeting. BPF hooks into
tracepoints and can cause long latency on RT setups.

IIRC, tracepoints themselves do not need to have preemption disabled. It's
just that some of the users of tracepoints expect preemption to be disabled.

If we fix the users of tracepoints not to expect preemption to be disabled,
then we could just switch the preempt_disable code (guard(preempt)) to
rcu_read_lock()s for the tracepoint callbacks, right?

There's a one or two places in ftrace that expect it, but I don't know
enough about perf. I don't think BPF needs preemption disabled, but just
migration disabled. I know you had some patches to work around this.

We need to get BPF working without preemption disabled for RT, I'm not sure
how much you know about what needs to be fixed.

I'm not asking for you to do this work, but can you remind me what you saw
when you created the faultable tracepoints?

Thanks,

-- Steve

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

end of thread, other threads:[~2025-01-17 17:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-06 17:07 Can we switch the tracepoints from preempt protection to rcu_read_lock? Steven Rostedt
2024-12-10 19:03 ` Mathieu Desnoyers
2025-01-17 17:28   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®