diff --git a/Makefile.target b/Makefile.target index 9b0cf74c31cc10856c5c88ff7b6ed4cc6ea586c6..cff15f0e131b8f4bda74963d5d482e62bce5fbd9 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) \ diff --git a/scripts/tracetool b/scripts/tracetool index d675daba2ba228913b461d2a15eb097c6a7c69b8..47389b62eac68d3d4bc6cd401b4b13aac3b205d9 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 @@ -494,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 <