« Previous | Next » 

Revision 256a721d

ID256a721d46a112d8807a488ec0176985c09bbbf1

Added by Stefan Hajnoczi almost 13 years ago

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 <>
Reviewed-by: Alon Levy <>
Reviewed-by: Lluís Vilanova <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences