summaryrefslogtreecommitdiffstats
path: root/include/qemu/log.h
diff options
context:
space:
mode:
authorAlex Bennée2019-10-11 17:34:05 +0200
committerAlex Bennée2019-10-28 16:12:38 +0100
commitca76a66975f018c323cb609c0c55a4c8d4acde3b (patch)
tree924f16d7c93f6d4fe9fe1cba8f818bf1718540ed /include/qemu/log.h
parentplugin: add qemu_plugin_insn_disas helper (diff)
downloadqemu-ca76a66975f018c323cb609c0c55a4c8d4acde3b.tar.gz
qemu-ca76a66975f018c323cb609c0c55a4c8d4acde3b.tar.xz
qemu-ca76a66975f018c323cb609c0c55a4c8d4acde3b.zip
plugin: add qemu_plugin_outs helper
Having the plugins grab stdout and spew stuff there is a bit ugly and certainly makes the tests look ugly. Provide a hook back into QEMU which can be redirected as needed. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Aaron Lindsay <aaron@os.amperecomputing.com>
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 b097a6cae1..a91105b2ad 100644
--- a/include/qemu/log.h
+++ b/include/qemu/log.h
@@ -45,6 +45,7 @@ static inline bool qemu_log_separate(void)
/* LOG_TRACE (1 << 15) is defined in log-for-trace.h */
#define CPU_LOG_TB_OP_IND (1 << 16)
#define CPU_LOG_TB_FPU (1 << 17)
+#define CPU_LOG_PLUGIN (1 << 18)
/* Lock output for a series of related logs. Since this is not needed
* for a single qemu_log / qemu_log_mask / qemu_log_mask_and_addr, we