mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
util/log: Support per-thread log files
Add a new log flag, tid, to turn this feature on. Require the log filename to be set, and to contain %d. Do not allow tid to be turned off once it is on, nor let the filename be change thereafter. This avoids the need for signalling each thread to re-open on a name change. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220417183019.755276-40-richard.henderson@linaro.org>
This commit is contained in:
parent
30f5a73ac3
commit
4e51069d67
2 changed files with 128 additions and 36 deletions
|
@ -34,6 +34,7 @@ bool qemu_log_separate(void);
|
|||
#define CPU_LOG_PLUGIN (1 << 18)
|
||||
/* LOG_STRACE is used for user-mode strace logging. */
|
||||
#define LOG_STRACE (1 << 19)
|
||||
#define LOG_PER_THREAD (1 << 20)
|
||||
|
||||
/* Lock/unlock output. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue