summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorPeter Maydell2020-01-20 16:11:42 +0100
committerStefan Hajnoczi2020-01-30 22:33:50 +0100
commitd4aceb2eb78a5f15e94791a43732c24b52c35dc5 (patch)
tree637363f8a1fccb4a618027122b297b05391fd2af /vl.c
parentmemory.c: Use trace_event_get_state_backends() (diff)
downloadqemu-d4aceb2eb78a5f15e94791a43732c24b52c35dc5.tar.gz
qemu-d4aceb2eb78a5f15e94791a43732c24b52c35dc5.tar.xz
qemu-d4aceb2eb78a5f15e94791a43732c24b52c35dc5.zip
hw/display/qxl.c: Use trace_event_get_state_backends()
The preferred way to test whether a trace event is enabled is to use trace_event_get_state_backends(), because this will give the correct answer (allowing expensive computations to be skipped) whether the trace event is compile-time or run-time disabled. Convert the old-style direct use of TRACE_FOO_ENABLED. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20200120151142.18954-4-peter.maydell@linaro.org Message-Id: <20200120151142.18954-4-peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'vl.c')
0 files changed, 0 insertions, 0 deletions