Searched hist:d4aceb2eb78a5f15e94791a43732c24b52c35dc5 (Results 1 – 1 of 1) sorted by relevance
/qemu/hw/display/ |
H A D | qxl.c | d4aceb2eb78a5f15e94791a43732c24b52c35dc5 Mon Jan 20 15:11:42 UTC 2020 Peter Maydell <peter.maydell@linaro.org> 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>
|