diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-17 11:30:19 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2022-04-20 10:51:11 -0700 |
| commit | 4e51069d679348d2617512e56e28cdc7bb34c833 (patch) | |
| tree | 3e785e72429be78d4d28060e9a3bcdaed66a4b51 /include/qemu/log.h | |
| parent | 30f5a73ac3be6a7ade2fc049162dc85c1bed9a9a (diff) | |
| download | focaccia-qemu-4e51069d679348d2617512e56e28cdc7bb34c833.tar.gz focaccia-qemu-4e51069d679348d2617512e56e28cdc7bb34c833.zip | |
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>
Diffstat (limited to 'include/qemu/log.h')
| -rw-r--r-- | include/qemu/log.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/log.h b/include/qemu/log.h index a325bca661..c5643d8dd5 100644 --- a/include/qemu/log.h +++ b/include/qemu/log.h @@ -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. */ |