summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Henderson2022-04-17 20:30:19 +0200
committerRichard Henderson2022-04-20 19:51:11 +0200
commit4e51069d679348d2617512e56e28cdc7bb34c833 (patch)
tree3e785e72429be78d4d28060e9a3bcdaed66a4b51 /include
parentutil/log: Limit RCUCloseFILE to file closing (diff)
downloadqemu-4e51069d679348d2617512e56e28cdc7bb34c833.tar.gz
qemu-4e51069d679348d2617512e56e28cdc7bb34c833.tar.xz
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')
-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 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. */