Re: [PATCH v3 17/17] selftests/verification: Add selftests for deadline and stall monitors
From: Gabriele Monaco
Date: Thu Jul 02 2026 - 10:06:12 EST
On Mon, 2026-06-29 at 00:58 +0800, Wen Yang wrote:
> > +echo nop > monitors/stall/reactors
> > +echo 0 > monitors/stall/enable
> > +
> > +echo 1000 > $THRESHOLD
>
> A little worried:
> If the system had a different value configured before the test ran,
> this silently changes system state for anything running after it.
Yeah that's a valid concern, I could restore the initial value, but to make it
absolutely safe I should also trap and restore it even if the test exits
prematurely (e.g. on failure or signal).
It shouldn't add too much complexity.
Thanks,
Gabriele