Commit cc33797
committed
ftrace: Disable preemption in the tracepoint callbacks handling filtered pids
When function trace PID filtering is enabled, the function tracer will
attach a callback to the fork tracepoint as well as the exit tracepoint
that will add the forked child PID to the PID filtering list as well as
remove the PID that is exiting.
Commit a46023d ("tracing: Guard __DECLARE_TRACE() use of
__DO_TRACE_CALL() with SRCU-fast") removed the disabling of preemption
when calling tracepoint callbacks.
The callbacks used for the PID filtering accounting depended on preemption
being disabled, and now the trigger a "suspicious RCU usage" warning message.
Make them explicitly disable preemption.
Cc: Mathieu Desnoyers <[email protected]>
Link: https://patch.msgid.link/[email protected]
Fixes: a46023d ("tracing: Guard __DECLARE_TRACE() use of __DO_TRACE_CALL() with SRCU-fast")
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>1 parent 0a663b7 commit cc33797
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8611 | 8611 | | |
8612 | 8612 | | |
8613 | 8613 | | |
| 8614 | + | |
8614 | 8615 | | |
8615 | 8616 | | |
8616 | 8617 | | |
| |||
8624 | 8625 | | |
8625 | 8626 | | |
8626 | 8627 | | |
| 8628 | + | |
8627 | 8629 | | |
8628 | 8630 | | |
8629 | 8631 | | |
| |||
0 commit comments