Thread (2 messages) 2 messages, 2 authors, 17d ago

Re: [PATCH] rtla/tests: Fix pgrep filter in get_workload_pids.sh

From: Wander Lairson Costa <hidden>
Date: 2026-06-10 12:53:13
Also in: lkml

On Thu, Jun 04, 2026 at 04:05:47PM +0200, Tomas Glozar wrote:
Multiple runtime tests in RTLA rely on the get_workload_pids() shell
helper function to get the PIDs of both kernel and user workloads.

On some systems (e.g. Fedora 43), pgrep matches kernel thread names
including square brackets: "[osnoise/0]"; on other systems (e.g.
RHEL 9.8), brackets are not included: "osnoise/0".

Accept both as valid workload PIDs rather that just the non-bracket form
to make the tests work on all systems.

Fixes: a98dad63cda3 ("rtla/tests: Add runtime test for -k and -u options")
Reported-by: Crystal Wood <redacted>
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
---

Note: the file touched by this commit is included by .gitignore, that is
an error that will be fixed by [1].

[1] https://lore.kernel.org/linux-trace-kernel/20260601091835.3118094-1-tglozar@redhat.com/ (local)
Reviewed-by: Wander Lairson Costa <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help