qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC] Add a stp file for usage from build directory
@ 2013-05-27  2:19 Alon Levy
  2013-05-27  6:32 ` Paolo Bonzini
  0 siblings, 1 reply; 10+ messages in thread
From: Alon Levy @ 2013-05-27  2:19 UTC (permalink / raw)
  To: qemu-devel

For systemtap the location of the process being tapped is crucial, so
the existing stp file requires installation to use. A new file providing
qemu.local prefixed probes lets scripts run without an install step.

Signed-off-by: Alon Levy <alevy@redhat.com>
---

 Makefile.target | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/Makefile.target b/Makefile.target
index ce4391f..5d176e2 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -35,7 +35,7 @@ config-target.h: config-target.h-timestamp
 config-target.h-timestamp: config-target.mak
 
 ifdef CONFIG_TRACE_SYSTEMTAP
-stap: $(QEMU_PROG).stp
+stap: $(QEMU_PROG).stp $(QEMU_PROG).local.stp
 
 ifdef CONFIG_USER_ONLY
 TARGET_TYPE=user
@@ -51,6 +51,17 @@ $(QEMU_PROG).stp: $(SRC_PATH)/trace-events
 		--target-arch=$(TARGET_ARCH) \
 		--target-type=$(TARGET_TYPE) \
 		< $< > $@,"  GEN   $(TARGET_DIR)$(QEMU_PROG).stp")
+
+$(QEMU_PROG).local.stp: $(SRC_PATH)/trace-events
+	$(call quiet-command,$(TRACETOOL) \
+		--format=stap \
+		--backend=$(TRACE_BACKEND) \
+		--binary=$(SRC_PATH)/$(TARGET_DIR)$(QEMU_PROG) \
+		--probe-prefix=qemu.local \
+		--target-arch=$(TARGET_ARCH) \
+		--target-type=$(TARGET_TYPE) \
+		< $< > $@,"  GEN   $(TARGET_DIR)$(QEMU_PROG).local.stp")
+
 else
 stap:
 endif
-- 
1.8.2.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-05-28 15:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-27  2:19 [Qemu-devel] [RFC] Add a stp file for usage from build directory Alon Levy
2013-05-27  6:32 ` Paolo Bonzini
2013-05-28 12:09   ` Alon Levy
2013-05-28 12:18     ` Paolo Bonzini
2013-05-28 12:33       ` Alon Levy
2013-05-28 12:37         ` Paolo Bonzini
2013-05-28 13:25           ` Alon Levy
2013-05-28 13:57             ` Alon Levy
2013-05-28 14:17               ` Paolo Bonzini
2013-05-28 15:24     ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).