mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
monitor: move x-query-profile into accel/tcg to fix build
As --enable-profiler isn't defended in CI we missed this breakage.
Move the qmp handler into accel/tcg so we have access to the helpers
we need. While we are at it ensure we gate the feature on CONFIG_TCG.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fixes: 37087fde0e ("qapi: introduce x-query-profile QMP command")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/773
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220105135009.1584676-23-alex.bennee@linaro.org>
This commit is contained in:
parent
33973e1e1f
commit
92e28c03d6
4 changed files with 34 additions and 31 deletions
|
|
@ -358,6 +358,7 @@ SRST
|
|||
Show host USB devices.
|
||||
ERST
|
||||
|
||||
#if defined(CONFIG_TCG)
|
||||
{
|
||||
.name = "profile",
|
||||
.args_type = "",
|
||||
|
|
@ -365,6 +366,7 @@ ERST
|
|||
.help = "show profiling information",
|
||||
.cmd_info_hrt = qmp_x_query_profile,
|
||||
},
|
||||
#endif
|
||||
|
||||
SRST
|
||||
``info profile``
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue