]> git.ipfire.org Git - thirdparty/linux.git/commit
rtla/tests: Extend action tests to 5s
authorTomas Glozar <tglozar@redhat.com>
Tue, 7 Oct 2025 09:53:40 +0000 (11:53 +0200)
committerTomas Glozar <tglozar@redhat.com>
Fri, 21 Nov 2025 09:29:01 +0000 (10:29 +0100)
commitd649e9f04cb0224817dac8190461ef1674e32b37
treeb46b141723aabad09ba80adadf4c9d1015f6b22b
parent417bd0d502f90a2e785e7299dae4f248b5ac0292
rtla/tests: Extend action tests to 5s

In non-BPF mode, it takes up to 1 second for RTLA to notice that tracing
has been stopped. That means that action tests cannot have a 1 second
duration, as the SIGALRM will be racing with the threshold overflow.

Previously, non-BPF mode actions were buggy and always executed
the action, even when stopping on duration or SIGINT, preventing
this issue from manifesting. Now that this has been fixed, the tests
have become flaky, and this has to be adjusted.

Fixes: 4e26f84abfbb ("rtla/tests: Add tests for actions")
Fixes: 05b7e10687c6 ("tools/rtla: Add remaining support for osnoise actions")
Reviewed-by: Wander Lairson Costa <wander@redhat.com>
Link: https://lore.kernel.org/r/20251007095341.186923-2-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/tests/osnoise.t
tools/tracing/rtla/tests/timerlat.t