Can rcu_tasks_trace be used for *all* tracepoints?
From: Steven Rostedt
Date: Tue Dec 01 2026 - 09:57:07 EST
Paul,
We currently use two different RCU flavors to synchronize tracepoints. One
for normal tracepoints and one for "system call" tracepoints (AKA,
tracepoints that can 'fault').
When we added the system call tracepoints, normal tracpoints used
preempt_disable to synchronize them, but we needed the system call
tracepoints to be able to fault to read user space and could not use
preempt_disable().
For system call tracepoints we used rcu_read_lock_trace() and
synchronize_rcu_tasks_trace() for synchronization. But to handle all
tracepoints (normal and system call ones), when unregistering a tracepoint,
we had to call both synchronize_rcu() and synchronize_rcu_task_trace().
Shortly after, we updated normal tracepoints to use SRCU fast. Today normal
tracepoints synchronize after waiting for the tracepoint_src grace periods
to end.
My question is, what is preventing us from using rcu_read_lock_trace() for
all tracepoints and remove the SRCU tracepoint_srcu implementation?
This would simplify things tremendously if we can do that.
Thanks,
-- Steve