From 371c338ecae44bb28cc19138484256b1df831e99 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Wed, 17 Nov 2010 18:05:58 -0600 Subject: [PATCH] Revert "Add support for generating a systemtap tapset static probes" This reverts commit 2834c3e0140c3b0ed4422909dfa0607b7213d95d. Conflicts: Makefile.target --- Makefile.target | 17 +---------- configure | 7 ----- tracetool | 92 --------------------------------------------------------- 3 files changed, 1 insertion(+), 115 deletions(-) diff --git a/Makefile.target b/Makefile.target index 652c7d2a57..31c968c029 100644 --- a/Makefile.target +++ b/Makefile.target @@ -41,18 +41,7 @@ kvm.o kvm-all.o vhost.o vhost_net.o: QEMU_CFLAGS+=$(KVM_CFLAGS) config-target.h: config-target.h-timestamp config-target.h-timestamp: config-target.mak -ifdef CONFIG_SYSTEMTAP_TRACE -STPFILES+=$(QEMU_PROG).stp - -$(QEMU_PROG).stp: - $(call quiet-command,sh $(SRC_PATH)/tracetool \ - --$(TRACE_BACKEND) \ - --bindir $(bindir) \ - --target $(TARGET_ARCH) \ - -s < $(SRC_PATH)/trace-events > $@," GEN $@") -endif - -all: $(PROGS) $(STPFILES) +all: $(PROGS) # Dummy command so that make thinks it has done something @true @@ -360,10 +349,6 @@ ifneq ($(STRIP),) $(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS)) endif endif -ifdef CONFIG_SYSTEMTAP_TRACE - $(INSTALL_DIR) "$(DESTDIR)$(datadir)/../systemtap/tapset" - $(INSTALL_DATA) $(STPFILES) "$(DESTDIR)$(datadir)/../systemtap/tapset" -endif # Include automatically generated dependency files -include $(wildcard *.d */*.d) diff --git a/configure b/configure index e560f878a3..f8dad3eb00 100755 --- a/configure +++ b/configure @@ -2192,10 +2192,6 @@ EOF echo exit 1 fi - trace_backend_stap="no" - if has 'stap' ; then - trace_backend_stap="yes" - fi fi ########################################## @@ -2649,9 +2645,6 @@ fi if test "$trace_backend" = "simple"; then trace_file="\"$trace_file-%u\"" fi -if test "$trace_backend" = "dtrace" -a "$trace_backend_stap" = "yes" ; then - echo "CONFIG_SYSTEMTAP_TRACE=y" >> $config_host_mak -fi echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak echo "TOOLS=$tools" >> $config_host_mak diff --git a/tracetool b/tracetool index d797ab79a3..5b6636ac27 100755 --- a/tracetool +++ b/tracetool @@ -26,12 +26,6 @@ Output formats: -h Generate .h file -c Generate .c file -d Generate .d file (DTrace only) - -s Generate .stp file (DTrace with SystemTAP only) - -Options: - --bindir [bindir] QEMU binary install location - --target [arch] QEMU target architecture - EOF exit 1 } @@ -396,54 +390,6 @@ linetod_end_dtrace() EOF } -linetos_begin_dtrace() -{ - return -} - -linetos_dtrace() -{ - local name args arglist state - name=$(get_name "$1") - args=$(get_args "$1") - arglist=$(get_argnames "$1", "") - state=$(get_state "$1") - if [ "$state" = "0" ] ; then - name=${name##disable } - fi - - if [ "$target" = "i386" ] - then - binary="qemu" - else - binary="qemu-system-$target" - fi - - # Define prototype for probe arguments - cat <