linux/tools/tracing/rtla/tests
Costa Shulyupin 115b06a008 tools/rtla: Consolidate nr_cpus usage across all tools
sysconf(_SC_NPROCESSORS_CONF) (via get_nprocs_conf) reflects
cpu_possible_mask, which is fixed at boot time, so querying it
repeatedly is unnecessary.

Replace multiple calls to sysconf(_SC_NPROCESSORS_CONF) with a single
global nr_cpus variable initialized once at startup.

`#pragma once` in timerlat_u.h is needed for pre-C23 compilers to avoid
redefinition errors.

Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
Link: https://lore.kernel.org/r/20260306194953.2511960-2-costa.shul@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
2026-03-09 08:49:16 +01:00
..
bpf rtla/tests: Test BPF action program 2026-01-07 15:57:16 +01:00
scripts rtla/tests: Test timerlat -P option using actions 2025-07-28 10:22:39 -04:00
unit tools/rtla: Consolidate nr_cpus usage across all tools 2026-03-09 08:49:16 +01:00
engine.sh rtla/tests: Run Test::Harness in verbose mode 2026-01-07 15:57:16 +01:00
hwnoise.t rtla/tests: Add grep checks for base test cases 2025-07-28 10:22:38 -04:00
osnoise.t rtla/tests: Fix osnoise test calling timerlat 2025-11-21 10:30:00 +01:00
timerlat.t rtla/tests: Test BPF action program 2026-01-07 15:57:16 +01:00