]> git.kaiwu.me - haproxy.git/commit
MINOR: cpu-topo: add detection of online CPUs on Linux
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Jul 2023 16:24:20 +0000 (18:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commit8f72ce335a2b000e621fec0e22bd3b55d88d6069
tree02216fe12c6459af3086adfcb508f639102f6ed0
parent8c524c7c9d3607cac01ee182fd374fb465417249
MINOR: cpu-topo: add detection of online CPUs on Linux

This adds a generic function ha_cpuset_detect_online() which for now
only supports linux via /sys. It fills a cpuset with the list of online
CPUs that were detected (or returns a failure).
include/haproxy/cpu_topo.h
src/cpu_topo.c