diff options
| author | 2026-03-06 21:49:49 +0200 | |
|---|---|---|
| committer | 2026-03-09 08:49:16 +0100 | |
| commit | 115b06a008756ec777249dc9f432dc1a6c681396 (patch) | |
| tree | 6384fa33c1b8cf419a0a4d345c58ea321d4afad0 /tools/perf/scripts/python/stackcollapse.py | |
| parent | Documentation/rtla: Document --stack-format option (diff) | |
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
