summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorPeter Maydell2016-03-01 16:54:03 +0100
committerPeter Maydell2016-03-01 16:54:03 +0100
commited6128ebbdd7cd885d39980659dad4b5c8ae8158 (patch)
tree0b88379328f6fdfd98db9936d8ca63f8d0f26831 /vl.c
parentMerge remote-tracking branch 'remotes/cohuck/tags/s390x-20160301' into staging (diff)
parenttrace: Add a proper API to manage auto-generated events from the 'tcg' property (diff)
downloadqemu-ed6128ebbdd7cd885d39980659dad4b5c8ae8158.tar.gz
qemu-ed6128ebbdd7cd885d39980659dad4b5c8ae8158.tar.xz
qemu-ed6128ebbdd7cd885d39980659dad4b5c8ae8158.zip
Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging
# gpg: Signature made Tue 01 Mar 2016 15:48:04 GMT using RSA key ID 81AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" * remotes/stefanha/tags/tracing-pull-request: trace: Add a proper API to manage auto-generated events from the 'tcg' property trace: Add 'vcpu' event property to trace guest vCPU typedefs: Add CPUState trace: Add helper function to cast event arguments tcg: Move definition of type TCGv tcg: Add type for vCPU pointers trace: Remove unnecessary intermediate event copies trace: Extend API to manage event arguments vl: fix tracing initialization trace: use addresses instead of offsets in memory tracepoints trace: split subpage MMIOs into their own trace events. trace: docs: "simple" backend does support strings trace: drop trailing empty strings Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/vl.c b/vl.c
index b87e29268c..adeddd98a6 100644
--- a/vl.c
+++ b/vl.c
@@ -4081,6 +4081,9 @@ int main(int argc, char **argv, char **envp)
exit(0);
}
+ if (!trace_init_backends()) {
+ exit(1);
+ }
trace_init_file(trace_file);
/* Open the logfile at this point and set the log mask if necessary.
@@ -4101,10 +4104,6 @@ int main(int argc, char **argv, char **envp)
qemu_set_log(0);
}
- if (!trace_init_backends()) {
- exit(1);
- }
-
/* If no data_dir is specified then try to find it relative to the
executable path. */
if (data_dir_idx < ARRAY_SIZE(data_dir)) {