mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue