[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 08/11] trace-state: [simple] disable all trace po
From: |
Lluís |
Subject: |
[Qemu-devel] [PATCH v2 08/11] trace-state: [simple] disable all trace points by default |
Date: |
Wed, 06 Apr 2011 20:34:49 +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 7506776..e3aec89 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 9fcc3bb..61bb3fb 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] [PATCH v2 03/11] trace: [ust] fix generation of 'trace.c' on events without args, (continued)
- [Qemu-devel] [PATCH v2 03/11] trace: [ust] fix generation of 'trace.c' on events without args, Lluís, 2011/04/06
- [Qemu-devel] [PATCH v2 04/11] trace: [trace-events] fix print formats in some events, Lluís, 2011/04/06
- [Qemu-devel] [PATCH v2 05/11] trace: [simple] minor code fixes on conditional compilation, Lluís, 2011/04/06
- [Qemu-devel] [PATCH v2 01/11] minor whitespace/indentation fixes, Lluís, 2011/04/06
- [Qemu-devel] [PATCH v2 06/11] trace: generalize the "property" concept in the trace-events file, Lluís, 2011/04/06
- [Qemu-devel] [PATCH v2 07/11] trace-state: always use the "nop" backend on events with the "disable" keyword, Lluís, 2011/04/06
- [Qemu-devel] [PATCH v2 08/11] trace-state: [simple] disable all trace points by default,
Lluís <=
- [Qemu-devel] [PATCH v2 09/11] trace-state: [simple] add "-trace events" argument to control initial state, Lluís, 2011/04/06
- [Qemu-devel] [PATCH v2 10/11] trace-state: [stderr] add support for dynamically enabling/disabling events, Lluís, 2011/04/06
- Re: [Qemu-devel] [PATCH v2 10/11] trace-state: [stderr] add support for dynamically enabling/disabling events, Stefan Hajnoczi, 2011/04/23
- Re: [Qemu-devel] [PATCH v2 10/11] trace-state: [stderr] add support for dynamically enabling/disabling events, Paolo Bonzini, 2011/04/24
- Re: [Qemu-devel] [PATCH v2 10/11] trace-state: [stderr] add support for dynamically enabling/disabling events, Stefan Hajnoczi, 2011/04/24
- Re: [Qemu-devel] [PATCH v2 10/11] trace-state: [stderr] add support for dynamically enabling/disabling events, Lluís, 2011/04/25
- Re: [Qemu-devel] [PATCH v2 10/11] trace-state: [stderr] add support for dynamically enabling/disabling events, Paolo Bonzini, 2011/04/25
- Re: [Qemu-devel] [PATCH v2 10/11] trace-state: [stderr] add support for dynamically enabling/disabling events, Fabien Chouteau, 2011/04/26
- Re: [Qemu-devel] [PATCH v2 10/11] trace-state: [stderr] add support for dynamically enabling/disabling events, Stefan Hajnoczi, 2011/04/26
- Re: [Qemu-devel] [PATCH v2 10/11] trace-state: [stderr] add support for dynamically enabling/disabling events, Paolo Bonzini, 2011/04/26