[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 08/10] trace-state: [simple] disable all trace po
From: |
Lluís |
Subject: |
[Qemu-devel] [PATCH v4 08/10] trace-state: [simple] disable all trace points by default |
Date: |
Tue, 03 May 2011 22:41:38 +0200 |
User-agent: |
StGit/0.15 |
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>
---
scripts/tracetool | 9 ++-------
trace-events | 3 ---
2 files changed, 2 insertions(+), 10 deletions(-)
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 4f965e2..1b2acf2 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.
#
- [Qemu-devel] [RFC][PATCH v4 00/10] trace-state: make the behaviour of "disable" consistent across all backends, Lluís, 2011/05/03
- [Qemu-devel] [PATCH v4 01/10] trace: move backend-specific code into the trace/ directory, Lluís, 2011/05/03
- [Qemu-devel] [PATCH v4 02/10] trace: avoid conditional code compilation during option parsing, Lluís, 2011/05/03
- [Qemu-devel] [PATCH v4 03/10] trace: generalize the "property" concept in the trace-events file, Lluís, 2011/05/03
- [Qemu-devel] [PATCH v4 04/10] trace-state: separate trace event control and query routines from the simple backend, Lluís, 2011/05/03
- [Qemu-devel] [PATCH v4 05/10] trace-state: always compile support for controlling and querying trace event states, Lluís, 2011/05/03
- [Qemu-devel] [PATCH v4 06/10] trace-state: add "-trace events" argument to control initial state, Lluís, 2011/05/03
- [Qemu-devel] [PATCH v4 07/10] trace-state: always use the "nop" backend on events with the "disable" keyword, Lluís, 2011/05/03
- [Qemu-devel] [PATCH v4 08/10] trace-state: [simple] disable all trace points by default,
Lluís <=
- [Qemu-devel] [PATCH v4 09/10] trace-state: [stderr] add support for dynamically enabling/disabling events, Lluís, 2011/05/03
- [Qemu-devel] [PATCH v4 10/10] trace: enable all events, Lluís, 2011/05/03
- Re: [Qemu-devel] [RFC][PATCH v4 00/10] trace-state: make the behaviour of "disable" consistent across all backends, Lluís, 2011/05/19