@@ -161,7 +161,7 @@ trace-events-subdirs += target/sparc
trace-events-subdirs += target/s390x
trace-events-subdirs += target/ppc
trace-events-subdirs += qom
-trace-events-y += linux-user/trace-events
+trace-events-subdirs += linux-user
trace-events-y += qapi/trace-events
trace-events-files = $(trace-events-y) $(trace-events-subdirs:%=%/trace-events)
@@ -6,3 +6,5 @@ obj-$(TARGET_HAS_BFLT) += flatload.o
obj-$(TARGET_I386) += vm86.o
obj-$(TARGET_ARM) += arm/nwfpe/
obj-$(TARGET_M68K) += m68k-sim.o
+trace-obj-y += trace.o
+trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o
@@ -24,7 +24,7 @@
#include "qemu.h"
#include "qemu-common.h"
#include "target_signal.h"
-#include "trace.h"
+#include "linux-user/trace.h"
static struct target_sigaltstack target_sigaltstack_used = {
.ss_sp = 0,
Switch files in the linux-user/ directory to include the linux-user/trace.h file instead of the global trace.h file. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> --- Makefile.objs | 2 +- linux-user/Makefile.objs | 2 ++ linux-user/signal.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-)