Re: [PATCH v3 12/17] sched: Adapt sched tracepoints for RV task model

From: Gabriele Monaco
Date: Wed Jul 16 2025 - 10:07:34 EST


On Wed, 2025-07-16 at 15:45 +0200, Peter Zijlstra wrote:
>
> I'm not sure I understand the importance of IRQ state when describing
> task transitions.
>
> You know both:
>
>  - schedule() invocations for any one task are in-order;
>  - schedule() invocations for any one CPU are in-order.
>

It's to describe latencies, which is the original purpose of the
scheduler model: if the event supposed to wake up an RT task occurs
with interrupts disabled while scheduling, we'd need to wait for that
run to complete.
Now to be fair, it doesn't really matter whether that call to
__schedule switches or not, but always having a switch event simplifies
things while modelling.
I can rearrange models like sts (added in this series) not to expect
that.

Thanks,
Gabriele