Gabriele Monaco <[email protected]> writes: > On Tue, 2026-05-19 at 09:49 +0200, Nam Cao wrote: >> The rtapp/sleep monitor detects real-time tasks which go to sleep in an >> real-time-unsafe manner. If this happen, the monitor triggers a trace event >> in the sched_wakeup tracepoint's handler. > > Ok so here WAKE is no longer tied to the wakeup event but to the end of the > task > switch. > > So what happens if a task was not sleeping but just got preempted? Wouldn't > that > trigger WAKE (though that isn't a real wakeup) without RT_FRIENDLY_WAKE ?
The monitor's rule says that when a task sleeps, it will not wake without rt-friendly wake. If it "wakes" without initial sleep, it is simply ignored. I can change the name to be SCHEDULE_IN or something like that to make it clearer. Nam
