MINOR: debug: add thread-cpu bindings info in 'show dev' output

Add thread-cpu bindings info in 'show dev' output, as it can be useful for
debugging.
This commit is contained in:
Valentine Krasnobaeva 2025-07-17 12:05:46 +02:00 committed by Willy Tarreau
parent ff461efc59
commit 1cc0e023ce

View File

@ -34,6 +34,7 @@
#include <haproxy/cfgparse.h>
#include <haproxy/cli.h>
#include <haproxy/clock.h>
#include <haproxy/cpu_topo.h>
#include <haproxy/debug.h>
#include <haproxy/fd.h>
#include <haproxy/global.h>
@ -751,6 +752,8 @@ static int debug_parse_cli_show_dev(char **args, char *payload, struct appctx *a
LIM2A(normalize_rlim((ulong)post_mortem.process.boot_lim_ram.rlim_max), "unlimited"),
LIM2A(normalize_rlim((ulong)post_mortem.process.run_lim_ram.rlim_max), "unlimited"));
cpu_topo_dump_summary(ha_cpu_topo, &trash);
ha_free(&err);
return cli_msg(appctx, LOG_INFO, trash.area);