diff mbox

dtrace backend: add function to reserved words

Message ID 1346540656-2927-1-git-send-email-alevy@redhat.com
State New
Headers show

Commit Message

Alon Levy Sept. 1, 2012, 11:04 p.m. UTC
Signed-off-by: Alon Levy <alevy@redhat.com>
---
 scripts/tracetool/backend/dtrace.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefan Hajnoczi Sept. 22, 2012, 3:53 p.m. UTC | #1
On Sun, Sep 02, 2012 at 02:04:16AM +0300, Alon Levy wrote:
> Signed-off-by: Alon Levy <alevy@redhat.com>
> ---
>  scripts/tracetool/backend/dtrace.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan
diff mbox

Patch

diff --git a/scripts/tracetool/backend/dtrace.py b/scripts/tracetool/backend/dtrace.py
index 9cab75c..6be7047 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