Skip to content
Snippets Groups Projects
Commit 1b7157be authored by Josh DuBois's avatar Josh DuBois Committed by Stefan Hajnoczi
Browse files

trace/simple: Allow enabling simple traces from command line


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 db25d56c, command-line initialization of
simple trace worked because every call to st_set_trace_file
enabled tracing.)

Fixes: db25d56c
Signed-off-by: default avatarJosh DuBois <josh@joshdubois.com>
Message-id: 20200723053359.256928-1-josh@joshdubois.com
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
parent 5772f2b1
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment