mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
Pull request
v2: * Fix Anthony Perard's email address [Philippe] -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl+XAbkACgkQnKSrs4Gr c8h0VggAvM5Smw+ALmAz9kh2l/a9Asjvd3y70imgXVX2Aj3hWWxZLlTKv459xIgO bYNQgXDt2QVnzhFT8tMrsTYvMi7OMcqZE3Kmou/5pfi2E7Wj9272OeHakrQbqVCb 5gEAZkQKxtnEfxysiVIQpsyp5hy0OnsWF+f3QfJUYq+BvI9XMOPsu3WpYJR3A9Uo joKHFjbRKlA1bSSpZIu7++u3sIuvDtbCwg04k5YeGSFiqmO400IjUoMQIdps3RvH +fOPz9MamNIZF0m7xkw7jS2FyWvq9PfMTCASFXQkVxu5lKm1k+GSvRo8g2vLWr/6 w8OOFcP4UTW87Ctzhr+2/5qi8SnCiA== =J+D3 -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/stefanha-gitlab/tags/tracing-pull-request' into staging Pull request v2: * Fix Anthony Perard's email address [Philippe] # gpg: Signature made Mon 26 Oct 2020 17:04:57 GMT # gpg: using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [full] # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" [full] # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8 * remotes/stefanha-gitlab/tags/tracing-pull-request: Add execute bit back to scripts/tracetool.py trace/simple: Enable tracing on startup only if the user specifies a trace option Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
4a74626970
0
scripts/tracetool.py
Normal file → Executable file
0
scripts/tracetool.py
Normal file → Executable file
@ -39,6 +39,7 @@ static TraceEventGroup *event_groups;
|
||||
static size_t nevent_groups;
|
||||
static uint32_t next_id;
|
||||
static uint32_t next_vcpu_id;
|
||||
static bool init_trace_on_startup;
|
||||
|
||||
QemuOptsList qemu_trace_opts = {
|
||||
.name = "trace",
|
||||
@ -225,7 +226,9 @@ void trace_init_file(const char *file)
|
||||
{
|
||||
#ifdef CONFIG_TRACE_SIMPLE
|
||||
st_set_trace_file(file);
|
||||
if (init_trace_on_startup) {
|
||||
st_set_trace_file_enabled(true);
|
||||
}
|
||||
#elif defined CONFIG_TRACE_LOG
|
||||
/*
|
||||
* If both the simple and the log backends are enabled, "--trace file"
|
||||
@ -299,6 +302,7 @@ char *trace_opt_parse(const char *optarg)
|
||||
}
|
||||
trace_init_events(qemu_opt_get(opts, "events"));
|
||||
trace_file = g_strdup(qemu_opt_get(opts, "file"));
|
||||
init_trace_on_startup = true;
|
||||
qemu_opts_del(opts);
|
||||
|
||||
return trace_file;
|
||||
|
Loading…
Reference in New Issue
Block a user