mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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>
This commit is contained in:
parent
c6f28ed507
commit
92eecfff32
10 changed files with 24 additions and 49 deletions
|
@ -2886,7 +2886,6 @@ void qemu_init(int argc, char **argv, char **envp)
|
|||
int display_remote = 0;
|
||||
const char *log_mask = NULL;
|
||||
const char *log_file = NULL;
|
||||
char *trace_file = NULL;
|
||||
ram_addr_t maxram_size;
|
||||
uint64_t ram_slots = 0;
|
||||
FILE *vmstate_dump_file = NULL;
|
||||
|
@ -3688,8 +3687,7 @@ void qemu_init(int argc, char **argv, char **envp)
|
|||
xen_domid_restrict = true;
|
||||
break;
|
||||
case QEMU_OPTION_trace:
|
||||
g_free(trace_file);
|
||||
trace_file = trace_opt_parse(optarg);
|
||||
trace_opt_parse(optarg);
|
||||
break;
|
||||
case QEMU_OPTION_plugin:
|
||||
qemu_plugin_opt_parse(optarg, &plugin_list);
|
||||
|
@ -3939,7 +3937,7 @@ void qemu_init(int argc, char **argv, char **envp)
|
|||
if (!trace_init_backends()) {
|
||||
exit(1);
|
||||
}
|
||||
trace_init_file(trace_file);
|
||||
trace_init_file();
|
||||
|
||||
/* Open the logfile at this point and set the log mask if necessary.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue