Statistics
| Branch: | Revision:

root / scripts @ 9943e0ec

Latest revisions

# Date Author Comment
662da385 05/01/2012 10:15 pm Stefan Hajnoczi

tracetool: use Python 2.4-compatible exception handling syntax

The newer "except <exception-type> as <exception>:" syntax is not
supported by Python 2.4, we need to use "except <exception-type>,
<exception>:".

Tested all trace backends with Python 2.4.
...

45d6c787 05/01/2012 10:15 pm Stefan Hajnoczi

tracetool: use Python 2.4-compatible import() arguments

In Python 2.5 keyword arguments were added to import(). Avoid using
them to achieve Python 2.4 compatibility.

Signed-off-by: Stefan Hajnoczi <>
Reviewed-by: Lluís Vilanova <>

b3ef0ade 05/01/2012 10:15 pm Stefan Hajnoczi

tracetool: avoid str.rpartition() Python 2.5 function

The str.rpartition() function is related to str.split() and is used for
splitting strings. It was introduced in Python 2.5 and therefore cannot
be used in tracetool as Python 2.4 compatibility is required....

9943e0ec 05/01/2012 10:15 pm Stefan Hajnoczi

tracetool: avoid pkgutil.iter_modules() Python 2.7 function

The pkgutil.iter_modules() function provides a way to enumerate child
modules. Unfortunately it's missing in Python <2.7 so we must implement
similar behavior ourselves.

Signed-off-by: Stefan Hajnoczi <>...

c41cc50f 04/24/2012 05:50 pm Eduardo Habkost

create_config: remove *dir block

Now only the qemu_*dir variables will become #defines. The other
directory names aren't used by the C code.

That means the following #defines won't be available in C code anymore:

- CONFIG_QEMU_BINDIR
- CONFIG_QEMU_LIBDIR...
0b3b7174 04/24/2012 05:50 pm Eduardo Habkost

create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX

As now that block handles only the prefix variable, the code can be much
simpler. This also removes the CONFIG_QEMU_PREFIX define as it is not
used by any C code.

Signed-off-by: Eduardo Habkost <>...

eb72952b 04/24/2012 05:50 pm Eduardo Habkost

create_config: separate section for qemu_*dir variables (v2)

The generic dir section will eventually go away and be replaced with
qemu_
section. By now, both sections will be kept, while the variables
get renamed on config-host.mak.

With this patch, a XXXdir variable will become a CONFIG_QEMU_XXXDIR...

fbc54b94 04/18/2012 04:03 pm Lluís Vilanova

tracetool: Add support for the 'ust' backend

Signed-off-by: Lluís Vilanova <>
Signed-off-by: Stefan Hajnoczi <>

52ef093a 04/18/2012 04:03 pm Lluís Vilanova

tracetool: Add support for the 'dtrace' backend

Signed-off-by: Lluís Vilanova <>
Signed-off-by: Stefan Hajnoczi <>

256a721d 04/18/2012 04:03 pm Stefan Hajnoczi

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....

View revisions

Also available in: Atom