qxl: fix modular builds with dtrace
commitd97df4b84bc42613cf9a03619de453ebd0be30b7
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 20 Jul 2020 10:03:50 +0000 (20 12:03 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 21 Jul 2020 08:56:47 +0000 (21 10:56 +0200)
treec897fd10b22d27621acf3322a37775360197f480
parent8e67fda2dd6202ccec093fda561107ba14830a17
qxl: fix modular builds with dtrace

Checking the enable/disable state of tracepoints via
trace_event_get_state_backends() does not work for modules.

qxl checks the state for a small optimization (avoid g_strndup
call in case log_buf will not be used anyway), so we can just
drop that check for modular builds.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20200720100352.2477-2-kraxel@redhat.com>
hw/display/qxl.c