]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtla: Set distinctive exit value for failed tests
authorCosta Shulyupin <costa.shul@redhat.com>
Thu, 17 Apr 2025 18:56:16 +0000 (21:56 +0300)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 7 May 2025 19:36:19 +0000 (15:36 -0400)
commit18682166f61494072d589692c57b7a32b89fc9dc
tree0108ccb58c9a4180d526c0afbd8449672a805e17
parent92a09c47464d040866cf2b4cd052bc60555185fb
rtla: Set distinctive exit value for failed tests

A test is considered failed when a sample trace exceeds the threshold.
Failed tests return the same exit code as passed tests, requiring test
frameworks to determine the result by searching for "hit stop tracing"
in the output.

Assign a distinct exit code for failed tests to enable the use of shell
expressions and seamless integration with testing frameworks without the
need to parse output.

Add enum type for return value.

Update `make check`.

Cc: Daniel Bristot de Oliveira <bristot@kernel.org>
Cc: John Kacur <jkacur@redhat.com>
Cc: "Luis Claudio R. Goncalves" <lgoncalv@redhat.com>
Cc: Eder Zulian <ezulian@redhat.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Jan Stancek <jstancek@redhat.com>
Link: https://lore.kernel.org/20250417185757.2194541-1-costa.shul@redhat.com
Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
Reviewed-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/src/osnoise_hist.c
tools/tracing/rtla/src/osnoise_top.c
tools/tracing/rtla/src/timerlat_hist.c
tools/tracing/rtla/src/timerlat_top.c
tools/tracing/rtla/src/utils.h
tools/tracing/rtla/tests/engine.sh
tools/tracing/rtla/tests/hwnoise.t
tools/tracing/rtla/tests/osnoise.t
tools/tracing/rtla/tests/timerlat.t