提交 d8f8a860 编写于 作者: A Alon Levy 提交者: Stefan Hajnoczi

dtrace backend: add function to reserved words

Signed-off-by: NAlon Levy <alevy@redhat.com>
Signed-off-by: NStefan Hajnoczi <stefanha@gmail.com>
上级 12dabc79
...@@ -87,7 +87,7 @@ def stap(events): ...@@ -87,7 +87,7 @@ def stap(events):
if len(e.args) > 0: if len(e.args) > 0:
for name in e.args.names(): for name in e.args.names():
# Append underscore to reserved keywords # Append underscore to reserved keywords
if name in ('limit', 'in', 'next', 'self'): if name in ('limit', 'in', 'next', 'self', 'function'):
name += '_' name += '_'
out(' %s = $arg%d;' % (name, i)) out(' %s = $arg%d;' % (name, i))
i += 1 i += 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册