Switch files in the hw/virtio/ directory to include the hw/virtio/trace.h file instead of the global trace.h file.
Signed-off-by: Daniel P. Berrange <berra...@redhat.com> --- Makefile.objs | 2 +- hw/virtio/Makefile.objs | 2 ++ hw/virtio/virtio-balloon.c | 2 +- hw/virtio/virtio-rng.c | 2 +- hw/virtio/virtio.c | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 049be9c..0840225 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -129,7 +129,7 @@ trace-events-subdirs += hw/block trace-events-subdirs += hw/char trace-events-subdirs += hw/intc trace-events-subdirs += hw/net -trace-events-y += hw/virtio/trace-events +trace-events-subdirs += hw/virtio trace-events-y += hw/audio/trace-events trace-events-y += hw/misc/trace-events trace-events-y += hw/usb/trace-events diff --git a/hw/virtio/Makefile.objs b/hw/virtio/Makefile.objs index 3e2b175..1bd2195 100644 --- a/hw/virtio/Makefile.objs +++ b/hw/virtio/Makefile.objs @@ -2,6 +2,8 @@ common-obj-y += virtio-rng.o common-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o common-obj-y += virtio-bus.o common-obj-y += virtio-mmio.o +trace-obj-y += trace.o +trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o obj-y += virtio.o virtio-balloon.o obj-$(CONFIG_LINUX) += vhost.o vhost-backend.o vhost-user.o diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index 5af429a..fb60da5 100644 --- a/hw/virtio/virtio-balloon.c +++ b/hw/virtio/virtio-balloon.c @@ -25,7 +25,7 @@ #include "exec/address-spaces.h" #include "qapi/visitor.h" #include "qapi-event.h" -#include "trace.h" +#include "hw/virtio/trace.h" #include "hw/virtio/virtio-bus.h" #include "hw/virtio/virtio-access.h" diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c index cd8ca10..0ad894e 100644 --- a/hw/virtio/virtio-rng.c +++ b/hw/virtio/virtio-rng.c @@ -17,7 +17,7 @@ #include "hw/virtio/virtio-rng.h" #include "sysemu/rng.h" #include "qom/object_interfaces.h" -#include "trace.h" +#include "hw/virtio/trace.h" static bool is_guest_ready(VirtIORNG *vrng) { diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 15ee3a7..2d205e2 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -15,7 +15,7 @@ #include "qapi/error.h" #include "qemu-common.h" #include "cpu.h" -#include "trace.h" +#include "hw/virtio/trace.h" #include "exec/address-spaces.h" #include "qemu/error-report.h" #include "hw/virtio/virtio.h" -- 2.7.4