diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-02 06:58:41 -0500 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2020-11-11 13:08:09 +0000 |
commit | 92eecfff32763ee138f4cebc1a12c5b051ad5bb5 (patch) | |
tree | 3b74701f9b1b6301b6e0a972eb7cc6bba22ad823 /linux-user/main.c | |
parent | c6f28ed5075df79fef39c500362a3f4089256c9c (diff) | |
download | qemu-92eecfff32763ee138f4cebc1a12c5b051ad5bb5.zip qemu-92eecfff32763ee138f4cebc1a12c5b051ad5bb5.tar.gz qemu-92eecfff32763ee138f4cebc1a12c5b051ad5bb5.tar.bz2 |
trace: remove argument from trace_init_file
It is not needed, all the callers are just saving what was
retrieved from -trace and trace_init_file can retrieve it
on its own.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20201102115841.4017692-1-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'linux-user/main.c')
-rw-r--r-- | linux-user/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 75c9785..24d1eb7 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -386,11 +386,9 @@ static void handle_arg_version(const char *arg) exit(EXIT_SUCCESS); } -static char *trace_file; static void handle_arg_trace(const char *arg) { - g_free(trace_file); - trace_file = trace_opt_parse(arg); + trace_opt_parse(arg); } #if defined(TARGET_XTENSA) @@ -672,7 +670,7 @@ int main(int argc, char **argv, char **envp) if (!trace_init_backends()) { exit(1); } - trace_init_file(trace_file); + trace_init_file(); if (qemu_plugin_load_list(&plugins)) { exit(1); } |