aboutsummaryrefslogtreecommitdiff
path: root/qemu-options.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2020-01-20 15:11:40 +0000
committerStefan Hajnoczi <stefanha@redhat.com>2020-01-30 21:33:50 +0000
commit1aa6430dbee5237db8831f63b17b5c7c321098d0 (patch)
treee959893eb5261bc31fd85c97a48b9fd7a61c7d36 /qemu-options.h
parent70149da7641815e08b985aa96ec15fe6ba927f12 (diff)
downloadqemu-1aa6430dbee5237db8831f63b17b5c7c321098d0.zip
qemu-1aa6430dbee5237db8831f63b17b5c7c321098d0.tar.gz
qemu-1aa6430dbee5237db8831f63b17b5c7c321098d0.tar.bz2
docs/devel/tracing.txt: Recommend only trace_event_get_state_backends()
Instead of recommending checking the TRACE_FOO_ENABLED macro to skip expensive computations needed only for tracing, recommend only using trace_event_get_state_backends(). This works for both compile-time and run-time disabling of events, and has no extra performance impact if the event is compile-time disabled. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20200120151142.18954-2-peter.maydell@linaro.org Message-Id: <20200120151142.18954-2-peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qemu-options.h')
0 files changed, 0 insertions, 0 deletions