From: Tomas Glozar <tglozar@redhat.com>
To: Steven Rostedt <rostedt@goodmis.org>, Tomas Glozar <tglozar@redhat.com>
Cc: John Kacur <jkacur@redhat.com>,
Luis Goncalves <lgoncalv@redhat.com>,
Crystal Wood <crwood@redhat.com>,
Costa Shulyupin <costa.shul@redhat.com>,
Wander Lairson Costa <wander@redhat.com>,
linux-trace-kernel <linux-trace-kernel@vger.kernel.org>
Subject: [PATCH 2/2] rtla/tests: Test --aa-only with actions
Date: Fri, 27 Nov 2026 12:32:19 +0100 [thread overview]
Message-ID: <20261127113219.86220-2-tglozar@redhat.com> (raw)
In-Reply-To: <20261127113219.86220-1-tglozar@redhat.com>
Add a runtime test that verifies that actions trigger with rtla timerlat
top --aa-only in both BPF and tracefs mode.
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
---
tools/tracing/rtla/tests/timerlat.t | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/tracing/rtla/tests/timerlat.t b/tools/tracing/rtla/tests/timerlat.t
index 1d317c851a0fa..aab026ead6c55 100644
--- a/tools/tracing/rtla/tests/timerlat.t
+++ b/tools/tracing/rtla/tests/timerlat.t
@@ -138,6 +138,8 @@ check_top_hist "with trace output at end" \
"timerlat TOOL -d 1s --on-end trace" 0 "^ Saving trace to timerlat_trace.txt$"
check_top_q_hist "action with no threshold" \
"timerlat TOOL -d 1s --on-threshold shell,command='echo BAD'" 0 "" "BAD"
+check "action with --aa-only" \
+ "timerlat top --aa-only 1 --on-threshold shell,command='echo TestOutput'" 2 "^TestOutput$"
# BPF action program tests
if [ "$option" -eq 0 ]
--
2.56.1
prev parent reply other threads:[~2026-11-27 11:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 11:32 [PATCH 1/2] rtla/timerlat_top: Trigger actions with --aa-only in BPF mode Tomas Glozar
2026-11-27 11:32 ` Tomas Glozar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127113219.86220-2-tglozar@redhat.com \
--to=tglozar@redhat.com \
--cc=costa.shul@redhat.com \
--cc=crwood@redhat.com \
--cc=jkacur@redhat.com \
--cc=lgoncalv@redhat.com \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=wander@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox