[RFC 0/3] preempt_tracer: Fix preempt_disable tracepoint

From: Daniel Bristot de Oliveira
Date: Tue May 28 2019 - 11:20:12 EST


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(-)

--
2.20.1