New trace-event backend: stderr
PATCH v2 1/1 New trace-event backend: stderr
This backend sends trace events to standard error output during the emulation.
--- configure | 2 +- docs/tracing.txt | 5 +++++ scripts/tracetool | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 58 insertions(+), 2 deletions(-)
configure +1 -1
@@ -907,7 +907,7 @@ echo " --enable-docs enable documentation build" echo " --disable-docs disable documentation build" echo " --disable-vhost-net disable vhost-net acceleration support" echo " --enable-vhost-net enable vhost-net acceleration support" -echo " --enable-trace-backend=B Trace backend nop simple ust dtrace" +echo " --enable-trace-backend=B Trace backend nop simple stderr ust dtrace" echo " --with-trace-file=NAME Full PATH,NAME of file to store traces" echo " Default:trace-<pid>" echo " --disable-spice disable spice"
docs/tracing.txt +5 -0
@@ -133,6 +133,11 @@ source tree. It may not be as powerful as platform-specific or third-party trace backends but it is portable. This is the recommended trace backend unless you have specific needs for more advanced backends. +=== Stderr === + +The "stderr" backend sends trace events directly to standard error output +during emulation. + ==== Monitor commands ==== * info trace
scripts/tracetool +52 -1
71 lines not on this page · raw message
Signature · 1 line
1.7.1
scripts/tracetool linetoc_end_simple() · line 250
Quoted 3 lines · Fabien Chouteau
scripts/tracetool +3
-0+linetoh_stderr() +{ + local name args argnamess argc fmt
s/argnamess/argnames/
Stefan
Quoted 6 lines · Stefan Hajnoczi
scripts/tracetool linetoc_end_simple() · line 250
Quoted 3 lines · Fabien Chouteau
scripts/tracetool +3
-0+linetoh_stderr() +{ + local name args argnamess argc fmts/argnamess/argnames/
Fixed.
Thanks,
Signature · 1 line
Fabien Chouteau
configure echo " --enable-docs enable documentation build" · line 910
Quoted 2 lines · Fabien Chouteau
configure +1
-1-echo " --enable-trace-backend=B Trace backend nop simple ust dtrace" +echo " --enable-trace-backend=B Trace backend nop simple stderr ust dtrace"
This is a bit cryptic, especially since there's no punctuation. Maybe it would be better to have something like the audio driver options:
echo " --enable-trace-backend=B Set trace backend:"
echo " Available backends: $trace_possible_backends"
(and set trace_possible_backends earlier, perhaps even automatically by running tracetool?)
-- PMM
Quoted 10 lines · Peter Maydell
configure echo " --enable-docs enable documentation build" · line 910
Quoted 2 lines · Fabien Chouteau
configure +1
-1-echo " --enable-trace-backend=B Trace backend nop simple ust dtrace" +echo " --enable-trace-backend=B Trace backend nop simple stderr ust dtrace"This is a bit cryptic, especially since there's no punctuation. Maybe it would be better to have something like the audio driver options:
echo " --enable-trace-backend=B Set trace backend:"
echo " Available backends: $trace_possible_backends"
Quoted 4 lines
(and set
trace_possible_backendsearlier, perhaps even automatically by running tracetool?)-- PMM
I will add this in the next version of the patch.
Signature · 1 line
Fabien Chouteau