mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
RTLA runtime tests verify the -c/--cpus options, but do not check whether the correct affinity is actually applied. Add a script named check-cpus.sh that retrieves the affinity of all workload threads and use it to check the -c/--cpus option for both osnoise and timerlat tools. Also add missing -c/--cpus test for osnoise. Reviewed-by: Wander Lairson Costa <wander@redhat.com> Link: https://lore.kernel.org/r/20260423130558.882022-4-tglozar@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com>
10 lines
219 B
Bash
Executable File
10 lines
219 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
. "$(dirname $0)/lib/get_workload_pids.sh"
|
|
echo -n "Affinity of threads: "
|
|
for pid in $(get_workload_pids)
|
|
do
|
|
echo -n $(taskset -c -p $pid | cut -d ':' -f 2)
|
|
done
|
|
echo
|