Searched hist:db25d56c014aa1a96319c663e0a60346a223b31e (Results 1 – 3 of 3) sorted by relevance
/qemu/trace/ |
H A D | simple.h | db25d56c014aa1a96319c663e0a60346a223b31e Wed May 27 06:56:13 UTC 2020 Markus Armbruster <armbru@redhat.com> trace/simple: Fix unauthorized enable
st_set_trace_file() accidentally enables tracing. It's called unconditionally during startup, which is why QEMU built with the simple trace backend always writes a trace file "trace-$PID".
This has been broken for quite a while. I didn't track down the exact commit.
Fix st_set_trace_file() to restore the state.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20200527065613.25322-1-armbru@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
H A D | control.c | 648b4823d90bd6deae985869855ceff934eee54d Sun Aug 16 17:46:10 UTC 2020 Josh DuBois <josh@joshdubois.com> trace/simple: Enable tracing on startup only if the user specifies a trace option
Tracing can be enabled at the command line or via the monitor. Command-line trace options are recorded during trace_opt_parse(), but tracing is not enabled until the various front-ends later call trace_init_file(). If the user passes a trace option on the command-line, remember that and enable tracing during trace_init_file(). Otherwise, trace_init_file() should record the trace file specified by the frontend and avoid enabling traces until the user requests them via the monitor.
This fixes 1b7157be3a8c4300fc8044d40f4b2e64a152a1b4 and also db25d56c014aa1a96319c663e0a60346a223b31e, by allowing the user to enable traces on the command line and also avoiding unwanted trace-<pid> files when the user has not asked for them.
Fixes: 1b7157be3a8c4300fc8044d40f4b2e64a152a1b4 Signed-off-by: Josh DuBois <josh@joshdubois.com> Message-id: 20200816174610.20253-1-josh@joshdubois.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> 1b7157be3a8c4300fc8044d40f4b2e64a152a1b4 Thu Jul 23 05:33:59 UTC 2020 Josh DuBois <duboisj@gmail.com> 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 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> Message-id: 20200723053359.256928-1-josh@joshdubois.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
H A D | simple.c | db25d56c014aa1a96319c663e0a60346a223b31e Wed May 27 06:56:13 UTC 2020 Markus Armbruster <armbru@redhat.com> trace/simple: Fix unauthorized enable
st_set_trace_file() accidentally enables tracing. It's called unconditionally during startup, which is why QEMU built with the simple trace backend always writes a trace file "trace-$PID".
This has been broken for quite a while. I didn't track down the exact commit.
Fix st_set_trace_file() to restore the state.
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20200527065613.25322-1-armbru@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|