* Peter Zijlstra <[email protected]> wrote:

> I think Mike once tried something along the lines of keeping a per rq state 
> that 
> got cleared at the end of schedule() but that doesn't catch things like the 
> migrate handlers I think.

We'd need a rq->clock.valid debug flag, which is set by a sched-clock update, 
and 
cleared by the end of all scheduler operations, not just schedule().

Then sched_clock() could have a pretty efficient assert in it. Are there bugs 
that 
such an approach would not catch?

Thaks,

        Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to