qemu-patch-raspberry4/scripts/tracetool/backend
Stefan Hajnoczi 256a721d46 tracetool: handle DTrace keywords 'in', 'next', 'self'
Language keywords cannot be used as argument names.  The DTrace backend
appends an underscore to the argument name in order to make the argument
name legal.

This patch adds 'in', 'next', and 'self' keywords to dtrace.py.

Also drop the unnecessary argument name lstrip() call.  The
Arguments.build() method already ensures there is no space around
argument names.  Furthermore it is misleading to do the lstrip() *after*
checking against keywords because the keyword check would not match if
spaces were in the name.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Reviewed-by: Alon Levy <alevy@redhat.com>
Reviewed-by: Lluís Vilanova <vilanova@ac.upc.edu>
2012-04-18 14:03:00 +01:00
..
__init__.py tracetool: Rewrite infrastructure as python modules 2012-04-18 14:02:59 +01:00
dtrace.py tracetool: handle DTrace keywords 'in', 'next', 'self' 2012-04-18 14:03:00 +01:00
simple.py tracetool: Add support for the 'simple' backend 2012-04-18 14:03:00 +01:00
stderr.py tracetool: Add support for the 'stderr' backend 2012-04-18 14:03:00 +01:00
ust.py tracetool: Add support for the 'ust' backend 2012-04-18 14:03:00 +01:00