mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
monitor: add handle_hmp_command trace event
It is often useful to correlate QEMU-internal events with monitor commands that caused them. Trace the full HMP command being executed. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20170605104216.22429-2-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
9746211baa
commit
79cad8b46b
2 changed files with 3 additions and 0 deletions
|
@ -3088,6 +3088,8 @@ static void handle_hmp_command(Monitor *mon, const char *cmdline)
|
|||
QDict *qdict;
|
||||
const mon_cmd_t *cmd;
|
||||
|
||||
trace_handle_hmp_command(mon, cmdline);
|
||||
|
||||
cmd = monitor_parse_command(mon, &cmdline, mon->cmd_table);
|
||||
if (!cmd) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue