On Thu, Sep 10, 2026, at 2:08 PM, Aaron Merey wrote:
> Hi Serhei,
>
> On Fri, Sep 4, 2026 at 9:56 AM Serhei Makarov <[email protected]> wrote:
>>
>> On an idle embedded system, run-stackprof-system*.sh will fail due to
>> lack of background activity yielding 0 samples. Fix this by imitating
>> existing run-native-test.sh and launching a sh 'while true' loop in
>> the background to guarantee that some samples are collected.
>> (No time limit; we use trap+kill+wait to clean up the sh process when
>> the testcase exits.)
>>
>> * tests/stackprof_subr.sh (testjob): New var, tracks job PID.
>> (testjob_launch): Launch a sh loop and assign to testjob.
>> (kill_testjob): On exit, kill+wait $testjob to clean up.
>> (testjob_cleanup): New helper, runs on abnormal exit (1,2,15).
>> (testjob_exit): New helper, runs on normal exit (0).
>> * tests/run-stackprof-system.sh: Invoke testjob_launch to guarantee
>> some samples are collected.
>> * tests/run-stackprof-system-gprof.sh: Invoke testjob_launch to
>> guarantee some samples are collected.
>
> LGTM with a Signed-off-by tag added.
Pushing this with Signed-off-by based on the LGTM.
(Down to the wire for 0.197, sorry.)