Re: [PATCH 1/3] rv/rtapp/sleep: Make the error more informative for user
From: Nam Cao
Date: Tue May 19 2026 - 11:58:06 EST
Gabriele Monaco <gmonaco@xxxxxxxxxx> 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