Received: from eggs.gnu.org ([208.118.235.92]:37197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCaiY-00060o-7u for qemu-devel@nongnu.org; Tue, 27 Mar 2012 14:02:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCaiT-0000nv-Af for qemu-devel@nongnu.org; Tue, 27 Mar 2012 14:02:01 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:44092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCaiS-0000nP-Vl for qemu-devel@nongnu.org; Tue, 27 Mar 2012 14:01:57 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20120326173750.20814.75373.stgit@ginnungagap.bsc.es> <1332866260-28387-1-git-send-email-alevy@redhat.com> Date: Tue, 27 Mar 2012 20:01:54 +0200 In-Reply-To: <1332866260-28387-1-git-send-email-alevy@redhat.com> (Alon Levy's message of "Tue, 27 Mar 2012 18:37:40 +0200") Message-ID: <8762dp7wj1.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] tracetool.py: always pass --binary, --target-arch, --target-type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alon Levy Cc: stefanha@gmail.com, qemu-devel@nongnu.org Alon Levy writes: > Signed-off-by: Alon Levy > --- > Makefile.objs | 25 ++++++++++++++++++++++--- > 1 file changed, 22 insertions(+), 3 deletions(-) > diff --git a/Makefile.objs b/Makefile.objs > index 8e56f48..0e33f4b 100644 > --- a/Makefile.objs > +++ b/Makefile.objs > @@ -373,12 +373,25 @@ else > trace.h: trace.h-timestamp > endif > trace.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak > - $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/tracetool.py --format=h --backend=$(TRACE_BACKEND) < $< > $@," GEN trace.h") > + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/tracetool.py \ > + --format=h \ > + --backend=$(TRACE_BACKEND) \ > + --binary=$(bindir)/$(QEMU_PROG) \ > + --target-arch=$(TARGET_ARCH) \ > + --target-type=$(TARGET_TYPE) \ > + --target-type=$(TARGET_TYPE) < $< > $@, \ > + " GEN trace.h") > @cmp -s $@ trace.h || cp $@ trace.h > trace.c: trace.c-timestamp > trace.c-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak > - $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/tracetool.py --format=c --backend=$(TRACE_BACKEND) < $< > $@," GEN trace.c") > + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/tracetool.py \ > + --format=c \ > + --backend=$(TRACE_BACKEND) \ > + --binary=$(bindir)/$(QEMU_PROG) \ > + --target-arch=$(TARGET_ARCH) \ > + --target-type=$(TARGET_TYPE) < $< > $@, \ > + " GEN trace.c") > @cmp -s $@ trace.c || cp $@ trace.c > trace.o: trace.c $(GENERATED_HEADERS) > @@ -391,7 +404,13 @@ trace-dtrace.h: trace-dtrace.dtrace > # rule file. So we use '.dtrace' instead > trace-dtrace.dtrace: trace-dtrace.dtrace-timestamp > trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/config-host.mak > - $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/tracetool.py --format=d --backend=$(TRACE_BACKEND) < $< > $@," GEN trace-dtrace.dtrace") > + $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/tracetool.py \ > + --format=d \ > + --backend=$(TRACE_BACKEND) \ > + --binary=$(bindir)/$(QEMU_PROG) \ > + --target-arch=$(TARGET_ARCH) \ > + --target-type=$(TARGET_TYPE) < $< > $@, \ > + " GEN trace-dtrace.dtrace") > @cmp -s $@ trace-dtrace.dtrace || cp $@ trace-dtrace.dtrace > trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS) > -- > 1.7.9.3 I don't see the reason for such a change, as in the current bash code it's not used except when generating files in the 'stap' format. Same applies to your change in tracetool.py when checking the binary/probe/etc options. Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth