]> Git Repo - qemu.git/commit
memory.c: Use trace_event_get_state_backends()
authorPeter Maydell <[email protected]>
Mon, 20 Jan 2020 15:11:41 +0000 (15:11 +0000)
committerStefan Hajnoczi <[email protected]>
Thu, 30 Jan 2020 21:33:50 +0000 (21:33 +0000)
commit380ea843bdaf3215c6f245328b46092887c05ff0
treed1b50eb30d9472bfd4f7ce152d6b5eb0e1a24819
parent1aa6430dbee5237db8831f63b17b5c7c321098d0
memory.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 four old-style direct uses of TRACE_FOO_ENABLED in
memory.c.

Signed-off-by: Peter Maydell <[email protected]>
Message-id: 20200120151142[email protected]
Message-Id: <20200120151142[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
memory.c
This page took 0.0248 seconds and 4 git commands to generate.