]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:10 +0000 (14:03 +0100)
commit89f6fb920e2cf5f4632263c684d4f8c1199c5b9e
tree8d2dba96e8690bb8391bb67ac2377c5d526cf04b
parent22b5096abc9824fb84f0bfe084f5be9f7ea5f2d9
rtla/tests: Extend action tests to 5s

[ Upstream commit d649e9f04cb0224817dac8190461ef1674e32b37 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/tracing/rtla/tests/osnoise.t
tools/tracing/rtla/tests/timerlat.t