diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2020-01-20 15:11:42 +0000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2020-01-30 21:33:50 +0000 |
commit | d4aceb2eb78a5f15e94791a43732c24b52c35dc5 (patch) | |
tree | 637363f8a1fccb4a618027122b297b05391fd2af /trace | |
parent | 380ea843bdaf3215c6f245328b46092887c05ff0 (diff) |
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 'trace')
0 files changed, 0 insertions, 0 deletions