Skip to contentSkip to conversation

New trace-event backend: stderr

PATCH Superseded Fabien Chouteau 3 participants 5 messages Jan 26, 2011

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

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
index 210670c..560274e 100755
@@ -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
index 963c504..21183f9 100644
@@ -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
#1 lore raw

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

#2 lore raw
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 fmt

s/argnamess/argnames/

Fixed.

Thanks,

Signature · 1 line
Fabien Chouteau
#3 lore raw
In reply to 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

#4 lore raw
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_backends earlier, perhaps even automatically by running tracetool?)

-- PMM

I will add this in the next version of the patch.

Signature · 1 line
Fabien Chouteau