summaryrefslogtreecommitdiffstats
path: root/scripts/tracetool
diff options
context:
space:
mode:
authorAnthony Liguori2012-04-02 16:44:35 +0200
committerAnthony Liguori2012-04-02 16:44:35 +0200
commitaba8e41e8666e4c0287cef1f6298985d4e03211d (patch)
treef45bd6a31c5c12db334d8645bce61ab9d8b05c53 /scripts/tracetool
parentserial: clear LSR.TEMT when populating the TSR (diff)
parenttracetool: dtrace: handle in and next reserved words (diff)
downloadqemu-aba8e41e8666e4c0287cef1f6298985d4e03211d.tar.gz
qemu-aba8e41e8666e4c0287cef1f6298985d4e03211d.tar.xz
qemu-aba8e41e8666e4c0287cef1f6298985d4e03211d.zip
Merge remote-tracking branch 'stefanha/tracing' into staging
* stefanha/tracing: tracetool: dtrace: handle in and next reserved words tracetool: dtrace disabled-events fix Makefile.target: code stp dependency on trace-events
Diffstat (limited to 'scripts/tracetool')
-rwxr-xr-xscripts/tracetool22
1 files changed, 18 insertions, 4 deletions
diff --git a/scripts/tracetool b/scripts/tracetool
index d675daba2b..47389b62ea 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 <<EOF
$arg = \$arg$i;
EOF