mirror of https://github.com/xemu-project/xemu.git
dtrace backend: add function to reserved words
Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
This commit is contained in:
parent
12dabc79f9
commit
d8f8a860f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue