mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Command line support for altering the log file location
Add command line support for logging to a location other than /tmp/qemu.log. With logging enabled (command line option -d), the log is written to the hard-coded path /tmp/qemu.log. This patch adds support for writing the log to a different location by passing the -D option. Signed-off-by: Matthew Fernandez <matthew.fernandez@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
71f34ad053
commit
c235d7387c
7 changed files with 114 additions and 54 deletions
5
cpus.c
5
cpus.c
|
@ -1142,6 +1142,11 @@ void set_cpu_log(const char *optarg)
|
|||
cpu_set_log(mask);
|
||||
}
|
||||
|
||||
void set_cpu_log_filename(const char *optarg)
|
||||
{
|
||||
cpu_set_log_filename(optarg);
|
||||
}
|
||||
|
||||
/* Return the virtual CPU time, based on the instruction counter. */
|
||||
int64_t cpu_get_icount(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue