Re: [PATCH v4 1/2] rtla: handle SIGTERM during a run
From: Chaosheng Qu
Date: Sat Nov 28 2026 - 00:49:24 EST
That matches what the tree does now. osnoise_enable() starts the trace
instances first and calls osn_set_stop() afterwards (osnoise.c; timerlat.c
does the same before its own osn_set_stop()), so a stop_tracing_us left
behind by an earlier run is already in effect when tracing starts. The new
value is written too late to protect the run, which is the reset-on-start
regression you described.
So I agree on both counts: the SIGTERM part is not the fix for that, and the
Fixes: tag goes. I would rather not send a v5 for a tag alone -- drop it
when you apply the patch, or say the word and I will send v5 with the tag
removed and the changelog pointing at c219d4ee1d6.
2/2 is independent of that and can land on its own. If you want, I can add
a case to it later that presets stop_tracing_us before the run and checks
that rtla overrides it -- but that test only makes sense once your reset fix
is in, so it would come after it.
Thanks,
Chaosheng