summary refs log tree commit diff stats
path: root/hw/timer/altera_timer.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2017-07-25 17:39:23 +0300
committerStefan Hajnoczi <stefanha@redhat.com>2017-08-01 12:13:07 +0100
commitbd6952a391b6f2083d6597386f457f30044e32a3 (patch)
treece8ca13de13a97932e62489c79a949955ef1bb51 /hw/timer/altera_timer.c
parent8908eb1a4aaf6b6573de3c44dfdaac6049061c02 (diff)
downloadfocaccia-qemu-bd6952a391b6f2083d6597386f457f30044e32a3.tar.gz
focaccia-qemu-bd6952a391b6f2083d6597386f457f30044e32a3.zip
monitor: Reduce handle_qmp_command() tracing overhead
We are malloc'ing a QString and spending CPU cycles on converting a
QObject to string, just for the sake of sticking the string in the trace
message.  Wasted when we aren't tracing.  Avoid that.

[Commit message and description suggested by Markus Armbruster to
provide more detail about the rationale for this patch.

Use trace_event_get_state_backends() instead of trace_event_get_state()
to honor DTrace/UST backend dstates.
--Stefan]

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20170725143923.11241-1-den@openvz.org
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: LluĂ­s Vilanova <vilanova@ac.upc.edu>
CC: Dr. David Alan Gilbert <dgilbert@redhat.com>
CC: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/timer/altera_timer.c')
0 files changed, 0 insertions, 0 deletions