]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: debug: add thread-cpu bindings info in 'show dev' output
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Thu, 17 Jul 2025 10:05:46 +0000 (12:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jul 2025 17:08:13 +0000 (19:08 +0200)
Add thread-cpu bindings info in 'show dev' output, as it can be useful for
debugging.

src/debug.c

index 2ea6d1c10652b2a091ba86e4eec42bb27b1b3892..d7a2851ab1b6bdabc977b08c081a8f6b242f67bc 100644 (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);