]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: split cpu_dump_topology() to show its summary in show dev
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Thu, 17 Jul 2025 10:05:33 +0000 (12:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jul 2025 17:07:46 +0000 (19:07 +0200)
commit240528323002fad1901a2dd3dec5a9739f6a6960
treeae43beb57a96ab2e9761ebfc4878052f3b4e4d03
parent254e4d59f75784c237e0c51596c6e0ca8730e717
MINOR: cpu-topo: split cpu_dump_topology() to show its summary in show dev

cpu_dump_topology() prints details about each enabled CPU and a summary with
clusters info and thread-cpu bindings. The latter is often usefull for
debugging and we want to add it in the 'show dev' output.

So, let's split cpu_dump_topology() in two parts: cpu_topo_debug() to print the
details about each enabled CPU; and cpu_topo_dump_summary() to print only the
summary.

In the next commit we will modify cpu_topo_dump_summary() to write into local
trash buffer and it could be easily called from debug_parse_cli_show_dev().
include/haproxy/cpu_topo.h
src/cpu_topo.c
src/thread.c