aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-09-02 02:04:16 +0300
committerDoug Goldstein <cardoe@cardoe.com>2013-01-12 20:39:15 -0600
commitfa75d42d618fe46428fd06ff1d9792acc897500f (patch)
tree99ee29ea34b14574b1f220bb122c13195aad0635
parentarm_boot: Change initrd load address to "halfway through RAM" (diff)
downloadqemu-kvm-fa75d42d618fe46428fd06ff1d9792acc897500f.tar.gz
qemu-kvm-fa75d42d618fe46428fd06ff1d9792acc897500f.tar.bz2
qemu-kvm-fa75d42d618fe46428fd06ff1d9792acc897500f.zip
dtrace backend: add function to reserved words
Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com> (cherry picked from commit d8f8a860f2403533fc73f541122c65a34b21e42f)
-rw-r--r--scripts/tracetool/backend/dtrace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tracetool/backend/dtrace.py b/scripts/tracetool/backend/dtrace.py
index 9cab75cde..6be704701 100644
--- a/scripts/tracetool/backend/dtrace.py
+++ b/scripts/tracetool/backend/dtrace.py
@@ -87,7 +87,7 @@ def stap(events):
if len(e.args) > 0:
for name in e.args.names():
# Append underscore to reserved keywords
- if name in ('limit', 'in', 'next', 'self'):
+ if name in ('limit', 'in', 'next', 'self', 'function'):
name += '_'
out(' %s = $arg%d;' % (name, i))
i += 1