peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0803-dtrace-backend-add-function-to-reserved-words.patch

771708
From 4780bb16558d2753e2277e1570644bec49551534 Mon Sep 17 00:00:00 2001
771708
From: Alon Levy <alevy@redhat.com>
771708
Date: Sun, 2 Sep 2012 02:04:16 +0300
771708
Subject: [PATCH] dtrace backend: add function to reserved words
771708
771708
Signed-off-by: Alon Levy <alevy@redhat.com>
771708
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
771708
---
771708
 scripts/tracetool/backend/dtrace.py | 2 +-
771708
 1 file changed, 1 insertion(+), 1 deletion(-)
771708
771708
diff --git a/scripts/tracetool/backend/dtrace.py b/scripts/tracetool/backend/dtrace.py
771708
index 9cab75c..6be7047 100644
771708
--- a/scripts/tracetool/backend/dtrace.py
771708
+++ b/scripts/tracetool/backend/dtrace.py
771708
@@ -87,7 +87,7 @@ def stap(events):
771708
         if len(e.args) > 0:
771708
             for name in e.args.names():
771708
                 # Append underscore to reserved keywords
771708
-                if name in ('limit', 'in', 'next', 'self'):
771708
+                if name in ('limit', 'in', 'next', 'self', 'function'):
771708
                     name += '_'
771708
                 out('  %s = $arg%d;' % (name, i))
771708
                 i += 1
771708
-- 
771708
1.7.12.1
771708