Skip to content

RFC preempt_tracer: Fix preempt_disable tracepoint

Daniel Bristot de Oliveira lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3softirq: Use preempt_latency_stop/start to trace preemptionkernel/sched/core.c kernel/softirq.c+7 -105 replies
2/3preempt_tracer: Disable IRQ while starting/stopping due to a preempt_counter changekernel/sched/core.c kernel/softirq.c+37 -1316 replies
3/3preempt_tracer: Use a percpu variable to control traceble callskernel/sched/core.c+12 -22 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/3] preempt_tracer: Fix preempt_disable tracepoint

While playing with the model + working in a fix for the task context & trace recursion, I ended up hitting two cases in which the preempt_disable/enable tracepoint was supposed to happen, but didn't.

There is an explanation for each case in the log message.

This is an RFC exposing the problem, with possible ways to fix it. But I bet there might be better solutions as well, so this is a real RFC.

Daniel Bristot de Oliveira (3):
softirq: Use preempt_latency_stop/start to trace preemption
preempt_tracer: Disable IRQ while starting/stopping due to a
preempt_counter change
preempt_tracer: Use a percpu variable to control traceble calls

 kernel/sched/core.c | 66 ++++++++++++++++++++++++++++++++++-----------
 kernel/softirq.c    | 13 ++++-----
 2 files changed, 55 insertions(+), 24 deletions(-)
Signature · 1 line
2.20.1