summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2013-04-27 17:35:55 +0000
committerRobert Mustacchi <rm@joyent.com>2013-04-27 17:35:55 +0000
commit5f94182be032144adba6aba8ee1db28c493e0458 (patch)
treeb81562c1a46700a9020afa68017cbb25bd951f53
parentfe0e2a69df4f09222cee2b5841a0772ad84876aa (diff)
downloadillumos-kvm-cmd-5f94182be032144adba6aba8ee1db28c493e0458.tar.gz
HVM-774 qemu uses dtrace -G with no probe sites20130515
-rw-r--r--Makefile3
-rw-r--r--Makefile.objs2
-rw-r--r--Makefile.target2
-rw-r--r--rules.mak2
4 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 780f22a..36cef8b 100644
--- a/Makefile
+++ b/Makefile
@@ -144,7 +144,8 @@ trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events config-host.mak
@cmp -s $@ trace-dtrace.dtrace || cp $@ trace-dtrace.dtrace
trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS)
- $(call quiet-command,dtrace $(CONFIG_DTRACE_FLAGS) -o $@ -G -s $<, " GEN trace-dtrace.o")
+ /bin/true
+# $(call quiet-command,dtrace $(CONFIG_DTRACE_FLAGS) -o $@ -G -s $<, " GEN trace-dtrace.o")
simpletrace.o: simpletrace.c $(GENERATED_HEADERS)
diff --git a/Makefile.objs b/Makefile.objs
index bf5b103..554e7f0 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -311,7 +311,9 @@ libdis-$(CONFIG_SPARC_DIS) += sparc-dis.o
# trace
ifeq ($(TRACE_BACKEND),dtrace)
+ifeq ($(strip $(CONFIG_SOLARIS)),)
trace-obj-y = trace-dtrace.o
+endif
else
trace-obj-y = trace.o
ifeq ($(TRACE_BACKEND),simple)
diff --git a/Makefile.target b/Makefile.target
index fa8b1f0..86ec693 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -387,7 +387,7 @@ ifneq ($(strip $(CONFIG_SOLARIS)),)
$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
$(call quiet-command, dtrace $(CONFIG_DTRACE_FLAGS) -o ../trace-dtrace.o -s ../trace-dtrace.dtrace -G $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)," LINK $(TARGET_DIR)$@.dtrace")
$(call quiet-command, find ../ -type f -name '*.o' -exec ../ctf.sh '{}' \;)
- $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
+ $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) ../trace-dtrace.o)
$(call CTFMERGE, $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
else
$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
diff --git a/rules.mak b/rules.mak
index 47d12b2..6a28249 100644
--- a/rules.mak
+++ b/rules.mak
@@ -31,7 +31,7 @@ ifeq ($(TRACE_BACKEND),dtrace)
ifneq ($(strip $(CONFIG_SOLARIS)),)
%$(EXESUF): %.o
$(call quiet-command, dtrace $(CONFIG_DTRACE_FLAGS) -o trace-dtrace.o -s trace-dtrace.dtrace -G $^," LINK $(TARGET_DIR)$@.dtrace")
- $(call LINK,$^)
+ $(call LINK,$^ trace-dtrace.o)
else
%$(EXESUF): %.o
$(call LINK,$^)