RFC preempt_tracer: Fix preempt_disable tracepoint
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 23 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | softirq: Use preempt_latency_stop/start to trace preemptionkernel/ kernel/ | +7 | 5 replies | |
| 2/3 | preempt_tracer: Disable IRQ while starting/stopping due to a preempt_counter changekernel/ kernel/ | +37 | 16 replies | |
| 3/3 | preempt_tracer: Use a percpu variable to control traceble callskernel/ | +12 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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