]> Git Repo - qemu.git/commitdiff
dtrace backend: add function to reserved words
authorAlon Levy <[email protected]>
Sat, 1 Sep 2012 23:04:16 +0000 (02:04 +0300)
committerStefan Hajnoczi <[email protected]>
Sun, 23 Sep 2012 06:11:28 +0000 (07:11 +0100)
Signed-off-by: Alon Levy <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
scripts/tracetool/backend/dtrace.py

index 9cab75cde8d8d2d6c578c1127f4d75abf8b0e2ba..6be7047018dcb014af7ed6e1519cc854fd7082cb 100644 (file)
@@ -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
This page took 0.024416 seconds and 4 git commands to generate.