]> git.kaiwu.me - haproxy.git/commit
MINOR: cpu-topo: implement a sorting mechanism for CPU index
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Jul 2023 15:03:20 +0000 (17:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:31 +0000 (18:30 +0100)
commit18133a054d7259d54ef7f584096f1f40e8af0790
treede2efa47b42ffa6ce4605aa3c12b51077ce94874
parent661d49a18a81a9844c3a9c785156346ea852a544
MINOR: cpu-topo: implement a sorting mechanism for CPU index

CPU selection will be performed by sorting CPUs according to
various criteria. For dumps however, that's really not convenient
and we'll need to reorder the CPUs according to their index only.
This is what the new function cpu_reorder_by_index() does. It's
called  in thread_detect_count() before dumping the CPU topology.
include/haproxy/cpu_topo.h
src/cpu_topo.c
src/thread.c