[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/15] trace: [simple] disable all trace points by d
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 12/15] trace: [simple] disable all trace points by default |
Date: |
Thu, 1 Sep 2011 09:06:23 +0100 |
From: Lluís <address@hidden>
Note that this refers to the backend-specific state (whether the output must be
generated), not the event "disabled" property (which always uses the "nop"
backend).
Signed-off-by: Lluís Vilanova <address@hidden>
---
docs/tracing.txt | 11 ++++++++---
scripts/tracetool | 9 ++-------
trace-events | 3 ---
3 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/docs/tracing.txt b/docs/tracing.txt
index 85793cf..d1d4e8c 100644
--- a/docs/tracing.txt
+++ b/docs/tracing.txt
@@ -12,11 +12,16 @@ for debugging, profiling, and observing execution.
./configure --trace-backend=simple
make
-2. Run the virtual machine to produce a trace file:
+2. Create a file with the events you want to trace:
- qemu ... # your normal QEMU invocation
+ echo bdrv_aio_readv > /tmp/events
+ echo bdrv_aio_writev >> /tmp/events
-3. Pretty-print the binary trace file:
+3. Run the virtual machine to produce a trace file:
+
+ qemu -trace events=/tmp/events ... # your normal QEMU invocation
+
+4. Pretty-print the binary trace file:
./simpletrace.py trace-events trace-*
diff --git a/scripts/tracetool b/scripts/tracetool
index e2cf117..c740080 100755
--- a/scripts/tracetool
+++ b/scripts/tracetool
@@ -221,15 +221,10 @@ EOF
linetoc_simple()
{
- local name state
+ local name
name=$(get_name "$1")
- if has_property "$1" "disable"; then
- state="0"
- else
- state="1"
- fi
cat <<EOF
-{.tp_name = "$name", .state=$state},
+{.tp_name = "$name", .state=0},
EOF
simple_event_num=$((simple_event_num + 1))
}
diff --git a/trace-events b/trace-events
index f08d6d0..eb612e8 100644
--- a/trace-events
+++ b/trace-events
@@ -17,9 +17,6 @@
# Example: qemu_malloc(size_t size) "size %zu"
#
# The "disable" keyword will build without the trace event.
-# In case of 'simple' trace backend, it will allow the trace event to be
-# compiled, but this would be turned off by default. It can be toggled on via
-# the monitor.
#
# The <name> must be a valid as a C function name.
#
--
1.7.5.4
- [Qemu-devel] [PULL 00/15] Tracing patches, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 03/15] trace: [configure] rename CONFIG_*_TRACE into CONFIG_TRACE_*, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 09/15] trace: always compile support for controlling and querying trace event states, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 15/15] simpletrace: fix process() argument count, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 12/15] trace: [simple] disable all trace points by default,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 08/15] trace: separate trace event control and query routines from the simple backend, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 04/15] trace: [make] replace 'ifeq' with values in CONFIG_TRACE_*, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 02/15] build: [simple] Include qemu-timer-common.o in trace-obj-y, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 10/15] trace: add "-trace events" argument to control initial state, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 05/15] trace: move backend-specific code into the trace/ directory, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 11/15] trace: always use the "nop" backend on events with the "disable" keyword, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 01/15] build: Fix linkage of QEMU_PROG, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 06/15] trace: avoid conditional code compilation during option parsing, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 14/15] trace: enable all events, Stefan Hajnoczi, 2011/09/01
- [Qemu-devel] [PATCH 13/15] trace: [stderr] add support for dynamically enabling/disabling events, Stefan Hajnoczi, 2011/09/01