hw/display/qxl.c: Use trace_event_get_state_backends()
commitd4aceb2eb78a5f15e94791a43732c24b52c35dc5
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 20 Jan 2020 15:11:42 +0000 (20 15:11 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 30 Jan 2020 21:33:50 +0000 (30 21:33 +0000)
tree637363f8a1fccb4a618027122b297b05391fd2af
parent380ea843bdaf3215c6f245328b46092887c05ff0
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>
hw/display/qxl.c