All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trace/simple: Allow enabling simple traces from command line
@ 2020-07-23  5:33 Josh DuBois
  2020-07-29 13:05   ` Stefan Hajnoczi
  0 siblings, 1 reply; 8+ messages in thread
From: Josh DuBois @ 2020-07-23  5:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Josh DuBois

The simple trace backend is enabled / disabled with a call
to st_set_trace_file_enabled().  When initializing tracing
from the command-line, this must be enabled on startup.
(Prior to db25d56c014aa1a9, command-line initialization of
simple trace worked because every call to st_set_trace_file
enabled tracing.)

Fixes: db25d56c014aa1a96319c663e0a60346a223b31e
Signed-off-by: Josh DuBois <josh@joshdubois.com>
---
 trace/control.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/trace/control.c b/trace/control.c
index 2ffe000818..6558b5c906 100644
--- a/trace/control.c
+++ b/trace/control.c
@@ -225,6 +225,7 @@ void trace_init_file(const char *file)
 {
 #ifdef CONFIG_TRACE_SIMPLE
     st_set_trace_file(file);
+    st_set_trace_file_enabled(true);
 #elif defined CONFIG_TRACE_LOG
     /*
      * If both the simple and the log backends are enabled, "--trace file"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-08-05  4:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-23  5:33 [PATCH] trace/simple: Allow enabling simple traces from command line Josh DuBois
2020-07-29 13:05 ` Stefan Hajnoczi
2020-07-29 13:05   ` Stefan Hajnoczi
2020-07-30 22:50   ` Josh DuBois
2020-08-03  9:08     ` Markus Armbruster
2020-08-03  9:08       ` Markus Armbruster
2020-08-04 17:41       ` Josh DuBois
2020-08-05  4:38         ` Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.