Switch files in the hw/intc/ directory to include the hw/intc/trace.h file instead of the global trace.h file.
Signed-off-by: Daniel P. Berrange <berra...@redhat.com> --- Makefile.objs | 2 +- hw/intc/Makefile.objs | 2 ++ hw/intc/apic.c | 2 +- hw/intc/apic_common.c | 2 +- hw/intc/arm_gic.c | 2 +- hw/intc/arm_gicv3_cpuif.c | 2 +- hw/intc/arm_gicv3_dist.c | 2 +- hw/intc/arm_gicv3_redist.c | 2 +- hw/intc/aspeed_vic.c | 2 +- hw/intc/grlib_irqmp.c | 2 +- hw/intc/lm32_pic.c | 2 +- hw/intc/s390_flic.c | 2 +- hw/intc/s390_flic_kvm.c | 2 +- hw/intc/slavio_intctl.c | 2 +- hw/intc/xics.c | 2 +- hw/intc/xics_kvm.c | 2 +- hw/intc/xics_spapr.c | 2 +- 17 files changed, 18 insertions(+), 16 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index ad44cbc..b1306fa 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -127,7 +127,7 @@ trace-events-subdirs += migration trace-events-subdirs += block trace-events-subdirs += hw/block trace-events-subdirs += hw/char -trace-events-y += hw/intc/trace-events +trace-events-subdirs += hw/intc trace-events-y += hw/net/trace-events trace-events-y += hw/virtio/trace-events trace-events-y += hw/audio/trace-events diff --git a/hw/intc/Makefile.objs b/hw/intc/Makefile.objs index 05ec21b..2b8493e 100644 --- a/hw/intc/Makefile.objs +++ b/hw/intc/Makefile.objs @@ -17,6 +17,8 @@ common-obj-$(CONFIG_ARM_GIC) += arm_gicv3.o common-obj-$(CONFIG_ARM_GIC) += arm_gicv3_dist.o common-obj-$(CONFIG_ARM_GIC) += arm_gicv3_redist.o common-obj-$(CONFIG_OPENPIC) += openpic.o +trace-obj-y += trace.o +trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o obj-$(CONFIG_APIC) += apic.o apic_common.o obj-$(CONFIG_ARM_GIC_KVM) += arm_gic_kvm.o diff --git a/hw/intc/apic.c b/hw/intc/apic.c index 45887d9..18db178 100644 --- a/hw/intc/apic.c +++ b/hw/intc/apic.c @@ -25,7 +25,7 @@ #include "hw/i386/ioapic.h" #include "hw/pci/msi.h" #include "qemu/host-utils.h" -#include "trace.h" +#include "hw/intc/trace.h" #include "hw/i386/pc.h" #include "hw/i386/apic-msidef.h" #include "qapi/error.h" diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index 14ac43c..772419e 100644 --- a/hw/intc/apic_common.c +++ b/hw/intc/apic_common.c @@ -23,7 +23,7 @@ #include "cpu.h" #include "hw/i386/apic.h" #include "hw/i386/apic_internal.h" -#include "trace.h" +#include "hw/intc/trace.h" #include "sysemu/kvm.h" #include "hw/qdev.h" #include "hw/sysbus.h" diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c index b30cc91..8ad10c6 100644 --- a/hw/intc/arm_gic.c +++ b/hw/intc/arm_gic.c @@ -24,7 +24,7 @@ #include "qapi/error.h" #include "qom/cpu.h" #include "qemu/log.h" -#include "trace.h" +#include "hw/intc/trace.h" //#define DEBUG_GIC diff --git a/hw/intc/arm_gicv3_cpuif.c b/hw/intc/arm_gicv3_cpuif.c index 4633172..6336b87 100644 --- a/hw/intc/arm_gicv3_cpuif.c +++ b/hw/intc/arm_gicv3_cpuif.c @@ -13,7 +13,7 @@ */ #include "qemu/osdep.h" -#include "trace.h" +#include "hw/intc/trace.h" #include "gicv3_internal.h" #include "cpu.h" diff --git a/hw/intc/arm_gicv3_dist.c b/hw/intc/arm_gicv3_dist.c index 3ea3dd0..dc405e9 100644 --- a/hw/intc/arm_gicv3_dist.c +++ b/hw/intc/arm_gicv3_dist.c @@ -11,7 +11,7 @@ #include "qemu/osdep.h" #include "qemu/log.h" -#include "trace.h" +#include "hw/intc/trace.h" #include "gicv3_internal.h" /* The GICD_NSACR registers contain a two bit field for each interrupt which diff --git a/hw/intc/arm_gicv3_redist.c b/hw/intc/arm_gicv3_redist.c index 77e5cfa..f1a6b08 100644 --- a/hw/intc/arm_gicv3_redist.c +++ b/hw/intc/arm_gicv3_redist.c @@ -11,7 +11,7 @@ #include "qemu/osdep.h" #include "qemu/log.h" -#include "trace.h" +#include "hw/intc/trace.h" #include "gicv3_internal.h" static uint32_t mask_group(GICv3CPUState *cs, MemTxAttrs attrs) diff --git a/hw/intc/aspeed_vic.c b/hw/intc/aspeed_vic.c index 2370e74..c152d78 100644 --- a/hw/intc/aspeed_vic.c +++ b/hw/intc/aspeed_vic.c @@ -31,7 +31,7 @@ #include "hw/intc/aspeed_vic.h" #include "qemu/bitops.h" #include "qemu/log.h" -#include "trace.h" +#include "hw/intc/trace.h" #define AVIC_NEW_BASE_OFFSET 0x80 diff --git a/hw/intc/grlib_irqmp.c b/hw/intc/grlib_irqmp.c index ac7e63f..26c89af 100644 --- a/hw/intc/grlib_irqmp.c +++ b/hw/intc/grlib_irqmp.c @@ -30,7 +30,7 @@ #include "hw/sparc/grlib.h" -#include "trace.h" +#include "hw/intc/trace.h" #include "qapi/error.h" #define IRQMP_MAX_CPU 16 diff --git a/hw/intc/lm32_pic.c b/hw/intc/lm32_pic.c index 3dad01c..37a393f 100644 --- a/hw/intc/lm32_pic.c +++ b/hw/intc/lm32_pic.c @@ -23,7 +23,7 @@ #include "hw/i386/pc.h" #include "monitor/monitor.h" #include "hw/sysbus.h" -#include "trace.h" +#include "hw/intc/trace.h" #include "hw/lm32/lm32_pic.h" #define TYPE_LM32_PIC "lm32-pic" diff --git a/hw/intc/s390_flic.c b/hw/intc/s390_flic.c index 6ab29ef..44d3ea4 100644 --- a/hw/intc/s390_flic.c +++ b/hw/intc/s390_flic.c @@ -15,7 +15,7 @@ #include "hw/sysbus.h" #include "migration/qemu-file.h" #include "hw/s390x/s390_flic.h" -#include "trace.h" +#include "hw/intc/trace.h" S390FLICState *s390_get_flic(void) { diff --git a/hw/intc/s390_flic_kvm.c b/hw/intc/s390_flic_kvm.c index fef8080..5bfc772 100644 --- a/hw/intc/s390_flic_kvm.c +++ b/hw/intc/s390_flic_kvm.c @@ -20,7 +20,7 @@ #include "migration/qemu-file.h" #include "hw/s390x/s390_flic.h" #include "hw/s390x/adapter.h" -#include "trace.h" +#include "hw/intc/trace.h" #define FLIC_SAVE_INITIAL_SIZE getpagesize() #define FLIC_FAILED (-1UL) diff --git a/hw/intc/slavio_intctl.c b/hw/intc/slavio_intctl.c index e82e893..ecf09ca 100644 --- a/hw/intc/slavio_intctl.c +++ b/hw/intc/slavio_intctl.c @@ -26,7 +26,7 @@ #include "hw/sparc/sun4m.h" #include "monitor/monitor.h" #include "hw/sysbus.h" -#include "trace.h" +#include "hw/intc/trace.h" //#define DEBUG_IRQ_COUNT diff --git a/hw/intc/xics.c b/hw/intc/xics.c index cd48f42..49a1146 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -30,7 +30,7 @@ #include "qemu-common.h" #include "cpu.h" #include "hw/hw.h" -#include "trace.h" +#include "hw/intc/trace.h" #include "qemu/timer.h" #include "hw/ppc/xics.h" #include "qemu/error-report.h" diff --git a/hw/intc/xics_kvm.c b/hw/intc/xics_kvm.c index edbd62f..9d944e3 100644 --- a/hw/intc/xics_kvm.c +++ b/hw/intc/xics_kvm.c @@ -30,7 +30,7 @@ #include "qemu-common.h" #include "cpu.h" #include "hw/hw.h" -#include "trace.h" +#include "hw/intc/trace.h" #include "sysemu/kvm.h" #include "hw/ppc/spapr.h" #include "hw/ppc/xics.h" diff --git a/hw/intc/xics_spapr.c b/hw/intc/xics_spapr.c index 618826d..8e83709 100644 --- a/hw/intc/xics_spapr.c +++ b/hw/intc/xics_spapr.c @@ -28,7 +28,7 @@ #include "qemu/osdep.h" #include "cpu.h" #include "hw/hw.h" -#include "trace.h" +#include "hw/intc/trace.h" #include "qemu/timer.h" #include "hw/ppc/spapr.h" #include "hw/ppc/xics.h" -- 2.7.4