]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rtla/tests: Fix pgrep filter in get_workload_pids.sh
authorTomas Glozar <tglozar@redhat.com>
Thu, 4 Jun 2026 14:05:47 +0000 (16:05 +0200)
committerTomas Glozar <tglozar@redhat.com>
Wed, 17 Jun 2026 14:26:44 +0000 (16:26 +0200)
commitc35eb77a67515d4201bc91294f40761591f43bbd
tree9b09649db35ee4b391b8931c1dbe57b0a436c2ea
parent6cf83f43bfc36dccc35a7f3f12094b14c4c0dda4
rtla/tests: Fix pgrep filter in get_workload_pids.sh

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 <crwood@redhat.com>
Link: https://lore.kernel.org/r/20260604140547.3616495-1-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/tests/scripts/lib/get_workload_pids.sh