Statistics
| Branch: | Revision:

root / scripts @ e7c5e893

Latest revisions

# Date Author Comment
49a88ce3 10/15/2011 01:00 pm Harsh Prateek Bora

scripts: Simpletrace log analysis script for pretty-printing 9p log.

This python script allows to pretty print 9p simpletrace logs and can be
further enhanced to filter 9p logs based on command line arguments.

Sample output:
TGETATTR (tag = 1 , fid = 0 , request_mask = 0x7ff )...

303b54b1 10/04/2011 05:00 pm Luiz Capitulino

qapi: Automatically generate a _MAX value for enums

It's the last value in the enum and is very useful for the C
implementation.

Signed-off-by: Luiz Capitulino <>

776574d6 10/04/2011 05:00 pm Anthony Liguori

qapi: add code generation support for middle mode

To get the ball rolling merging QAPI, this patch introduces a "middle mode" to
the code generator. In middle mode, the code generator generates marshalling
functions that are compatible with the current QMP server. We absolutely need...

15e43e64 10/04/2011 05:00 pm Anthony Liguori

qapi: fixup command generation for functions that return list types

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

75b96aca 10/04/2011 05:00 pm Michael Roth

qapi: generate qapi_free_* functions for *List types

Reviewed-by: Anthony Liguori <>
Signed-off-by: Michael Roth <>
Signed-off-by: Luiz Capitulino <>

e1bc2f7b 10/04/2011 05:00 pm Michael Roth

qapi: modify visitor code generation for list iteration

Modify logic such that we never assign values to the list head argument
to progress through the list on subsequent iterations, instead rely only
on having our return value passed back in as an argument on the next...

d2a80d6b 10/04/2011 05:00 pm Luiz Capitulino

qapi: Don't use c_var() on enum strings

Otherwise if we have something like 'foo-bar' in the schema,
it will be generated as 'foo_bar' in the string lookup table.

c_var() is good for C variables, but not for enum strings.

Signed-off-by: Luiz Capitulino <>

913540a3 09/17/2011 06:14 pm Stefan Hajnoczi

trace: allow PRI*64 at beginning and ending of format string

The tracetool parser only picks up PRI*64 and other format string macros
when enclosed between double quoted strings. Lift this restriction by
extracting everything after the closing ')' as the format string:...

9a82b6a5 09/01/2011 12:34 pm Lluís

trace: [stderr] add support for dynamically enabling/disabling events

Uses the generic interface provided in "trace/control.h" in order to provide
a programmatic interface as well as command line and monitor controls.

Signed-off-by: Fabien Chouteau <>...

d8e8ef4e 09/01/2011 12:34 pm Stefan Hajnoczi

simpletrace: fix process() argument count

The simpletrace.process() function invokes analyzer methods with the
wrong number of arguments if a timestamp should be included. This patch
fixes the issue so that trace analysis scripts can make use of
timestamps....

View revisions

Also available in: Atom