aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/log.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-04-17 11:30:19 -0700
committerRichard Henderson <richard.henderson@linaro.org>2022-04-20 10:51:11 -0700
commit4e51069d679348d2617512e56e28cdc7bb34c833 (patch)
tree3e785e72429be78d4d28060e9a3bcdaed66a4b51 /include/qemu/log.h
parent30f5a73ac3be6a7ade2fc049162dc85c1bed9a9a (diff)
downloadqemu-4e51069d679348d2617512e56e28cdc7bb34c833.zip
qemu-4e51069d679348d2617512e56e28cdc7bb34c833.tar.gz
qemu-4e51069d679348d2617512e56e28cdc7bb34c833.tar.bz2
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/log.h b/include/qemu/log.h
index a325bca..c5643d8 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. */