From 2174e2380fcf853977a73be935b369218671a9a6 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 18 Mar 2012 08:47:15 +0100 Subject: [PATCH 1/3] Makefile.target: code stp dependency on trace-events Signed-off-by: Alon Levy Signed-off-by: Stefan Hajnoczi --- Makefile.target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.target b/Makefile.target index 44b2e83e6f..9f3c100b0e 100644 --- a/Makefile.target +++ b/Makefile.target @@ -58,7 +58,7 @@ else TARGET_TYPE=system endif -$(QEMU_PROG).stp: +$(QEMU_PROG).stp: $(SRC_PATH)/trace-events $(call quiet-command,sh $(SRC_PATH)/scripts/tracetool \ --$(TRACE_BACKEND) \ --binary $(bindir)/$(QEMU_PROG) \ From 60be795f0b9ca06030b942367a82d80f125a50f7 Mon Sep 17 00:00:00 2001 From: Lee Essen Date: Tue, 20 Mar 2012 17:02:40 +0000 Subject: [PATCH 2/3] tracetool: dtrace disabled-events fix If there are "disabled" entries in the trace-events file then linetod_nop() is called if the backend is dtrace, it's currently not present. Also equivalent fix for stap. Signed-off-by: Lee Essen Signed-off-by: Stefan Hajnoczi --- scripts/tracetool | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/tracetool b/scripts/tracetool index 65bd0a1b4c..a279c2c58b 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -161,6 +161,18 @@ linetoc_nop() return } +linetod_nop() +{ + # Used when "disabled" events are processed + return +} + +linetostap_nop() +{ + # Used when "disabled" events are processed + return +} + linetoc_end_nop() { return From 703e01e6e249e6d0a74e0cbab827b235032ec7f3 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 29 Mar 2012 23:35:36 +0200 Subject: [PATCH 3/3] tracetool: dtrace: handle in and next reserved words Signed-off-by: Alon Levy Signed-off-by: Stefan Hajnoczi --- scripts/tracetool | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/tracetool b/scripts/tracetool index a279c2c58b..5e77aa243d 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -506,10 +506,12 @@ EOF i=1 for arg in $arglist do - # 'limit' is a reserved keyword - if [ "$arg" = "limit" ]; then - arg="_limit" - fi + # postfix reserved words with '_' + case "$arg" in + limit|in|next|self) + arg="${arg}_" + ;; + esac cat <