Skip to contentSkip to conversation

Tracing patches

GIT PULL Applied Stefan Hajnoczi 2 participants 3 messages Jul 19, 2018 – Jul 20, 2018

lore
Share & tools
lore
#0 lore raw

The following changes since commit ea6abffa8a08d832feb759d359d5b935e3087cf7:

Update version for v3.0.0-rc1 release (2018-07-17 18:15:19 +0100)

are available in the Git repository at:

git://github.com/stefanha/qemu.git tags/tracing-pull-request

for you to fetch changes up to db817b8c500a60873eba80cbf047900ae5b32766:

tracing: Use double-dash spelling for trace option (2018-07-19 13:09:04 +0100)

----------------------------------------------------------------
Pull request

Contains a fix to use double-dash consistently with tracing command-line options in documentation and output.

----------------------------------------------------------------

Yaowei Bai (1):
tracing: Use double-dash spelling for trace option

 docs/devel/tracing.txt | 6 +++---
 trace/control.h        | 4 ++--
 trace/control.c        | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

[Qemu-devel] [PULL for-3.0 1/1] tracing: Use double-dash spelling for trace option

From: Yaowei Bai <[email protected]>

The '-trace' and '--trace' spellings are only both supported in qemu binary, while for qemu-nbd or qemu-img only '--trace' spelling is supported. So for the consistency of trace option invocation, we should use double-dash spelling in our documentation.

This's also mentioned in
https://wiki.qemu.org/BiteSizedTasks#Consistent_option_usage_in_documentation
.

Message-id: [email protected]

---
 docs/devel/tracing.txt | 6 +++---
 trace/control.h        | 4 ++--
 trace/control.c        | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)
docs/devel/tracing.txt +3 -3
index 6f815ecbd7..bc52f12485 100644
@@ -18,7 +18,7 @@ for debugging, profiling, and observing execution.
 
 3. Run the virtual machine to produce a trace file:
 
-    qemu -trace events=/tmp/events ... # your normal QEMU invocation
+    qemu --trace events=/tmp/events ... # your normal QEMU invocation
 
 4. Pretty-print the binary trace file:
 
@@ -157,11 +157,11 @@ The state of events can also be queried and modified through monitor commands:
 * trace-event NAME on|off
   Enable/disable a given trace event or a group of events (using wildcards).
 
-The "-trace events=<file>" command line argument can be used to enable the
+The "--trace events=<file>" command line argument can be used to enable the
 events listed in <file> from the very beginning of the program. This file must
 contain one event name per line.
 
-If a line in the "-trace events=<file>" file begins with a '-', the trace event
+If a line in the "--trace events=<file>" file begins with a '-', the trace event
 will be disabled instead of enabled.  This is useful when a wildcard was used
 to enable an entire family of events but one noisy event needs to be disabled.
 
trace/control.h +2 -2
index eb65c8e320..0716f90f45 100644
@@ -193,7 +193,7 @@ void trace_event_set_vcpu_state_dynamic(CPUState *vcpu,
 /**
  * trace_init_backends:
  * @file:   Name of trace output file; may be NULL.
- *          Corresponds to commandline option "-trace file=...".
+ *          Corresponds to commandline option "--trace file=...".
  *
  * Initialize the tracing backend.
  *
@@ -204,7 +204,7 @@ bool trace_init_backends(void);
 /**
  * trace_init_file:
  * @file:   Name of trace output file; may be NULL.
- *          Corresponds to commandline option "-trace file=...".
+ *          Corresponds to commandline option "--trace file=...".
  *
  * Record the name of the output file for the tracing backend.
  * Exits if no selected backend does not support specifying the
trace/control.c +2 -2
index e40cfca775..43fb7868db 100644
@@ -253,7 +253,7 @@ void trace_init_file(const char *file)
 #ifdef CONFIG_TRACE_SIMPLE
     st_set_trace_file(file);
 #elif defined CONFIG_TRACE_LOG
-    /* If both the simple and the log backends are enabled, "-trace file"
+    /* If both the simple and the log backends are enabled, "--trace file"
      * only applies to the simple backend; use "-D" for the log backend.
      */
     if (file) {
@@ -261,7 +261,7 @@ void trace_init_file(const char *file)
     }
 #else
     if (file) {
-        fprintf(stderr, "error: -trace file=...: "
+        fprintf(stderr, "error: --trace file=...: "
                 "option not supported by the selected tracing backends\n");
         exit(1);
     }
Signature · 1 line
2.17.1
#2 lore raw
In reply to Stefan Hajnoczi
Quoted 20 lines · Stefan Hajnoczi

The following changes since commit ea6abffa8a08d832feb759d359d5b935e3087cf7:

Update version for v3.0.0-rc1 release (2018-07-17 18:15:19 +0100)

are available in the Git repository at:

git://github.com/stefanha/qemu.git tags/tracing-pull-request

for you to fetch changes up to db817b8c500a60873eba80cbf047900ae5b32766:

tracing: Use double-dash spelling for trace option (2018-07-19 13:09:04 +0100)

----------------------------------------------------------------
Pull request

Contains a fix to use double-dash consistently with tracing command-line options in documentation and output.

----------------------------------------------------------------

Quoted 8 lines

Yaowei Bai (1):
tracing: Use double-dash spelling for trace option

 docs/devel/tracing.txt | 6 +++---
 trace/control.h        | 4 ++--
 trace/control.c        | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

Applied, thanks.

-- PMM