From 79cad8b46ba79116ded5690ea2e265585bb9cb53 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Mon, 5 Jun 2017 11:42:15 +0100 Subject: 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 Reviewed-by: Eric Blake Message-id: 20170605104216.22429-2-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi --- monitor.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 1e63ace2d4..11de403edf 100644 --- a/monitor.c +++ b/monitor.c @@ -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; -- cgit v1.2.1