]> git.proxmox.com Git - mirror_qemu.git/commitdiff
trace: Do not try to include QMP commands in user emulation binaries
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 20 Dec 2022 15:00:41 +0000 (16:00 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Feb 2023 21:29:01 +0000 (22:29 +0100)
QMP is not available on user emulation; there is not monitor.
Besides, since commit a0e61807a3 ("qapi: Remove QMP events
and commands from user-mode builds") we don't generate the
qapi-commands-trace.h header in a user-emulation-only build.

Remove the QMP trace commands from qemu-user binaries.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221220150417.26751-1-philmd@linaro.org>

trace/meson.build

index d565948b09f847f6bbe62dfe70cdca2896b0defc..8e80be895c930f13f58c77f334bb34739d404216 100644 (file)
@@ -89,4 +89,6 @@ if 'ftrace' in get_option('trace_backends')
   trace_ss.add(files('ftrace.c'))
 endif
 trace_ss.add(files('control.c'))
-trace_ss.add(files('qmp.c'))
+if have_system or have_tools or have_ga
+  trace_ss.add(files('qmp.c'))
+endif