Switch files in the hw/block/ directory to include the hw/block/trace.h file instead of the global trace.h file.
Signed-off-by: Daniel P. Berrange <berra...@redhat.com> --- Makefile.objs | 2 +- hw/block/Makefile.objs | 2 ++ hw/block/dataplane/virtio-blk.c | 2 +- hw/block/hd-geometry.c | 2 +- hw/block/virtio-blk.c | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 3ab3c10..8fe8b71 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -125,7 +125,7 @@ trace-events-subdirs += crypto trace-events-subdirs += io trace-events-subdirs += migration trace-events-subdirs += block -trace-events-y += hw/block/trace-events +trace-events-subdirs += hw/block trace-events-y += hw/char/trace-events trace-events-y += hw/intc/trace-events trace-events-y += hw/net/trace-events diff --git a/hw/block/Makefile.objs b/hw/block/Makefile.objs index d4c3ab7..a2f523d 100644 --- a/hw/block/Makefile.objs +++ b/hw/block/Makefile.objs @@ -8,6 +8,8 @@ common-obj-$(CONFIG_XEN_BACKEND) += xen_disk.o common-obj-$(CONFIG_ECC) += ecc.o common-obj-$(CONFIG_ONENAND) += onenand.o common-obj-$(CONFIG_NVME_PCI) += nvme.o +trace-obj-y += trace.o +trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o obj-$(CONFIG_SH4) += tc58128.o diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index 704a763..28e7163 100644 --- a/hw/block/dataplane/virtio-blk.c +++ b/hw/block/dataplane/virtio-blk.c @@ -14,7 +14,7 @@ #include "qemu/osdep.h" #include "qapi/error.h" -#include "trace.h" +#include "hw/block/trace.h" #include "qemu/iov.h" #include "qemu/thread.h" #include "qemu/error-report.h" diff --git a/hw/block/hd-geometry.c b/hw/block/hd-geometry.c index 57ad501..5d3691a 100644 --- a/hw/block/hd-geometry.c +++ b/hw/block/hd-geometry.c @@ -34,7 +34,7 @@ #include "sysemu/block-backend.h" #include "qemu/bswap.h" #include "hw/block/block.h" -#include "trace.h" +#include "hw/block/trace.h" struct partition { uint8_t boot_ind; /* 0x80 - active */ diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 331d766..856c0e3 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -16,7 +16,7 @@ #include "qemu-common.h" #include "qemu/iov.h" #include "qemu/error-report.h" -#include "trace.h" +#include "hw/block/trace.h" #include "hw/block/block.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" -- 2.7.4