diff options
| author | Alex Bennée | 2019-10-11 17:34:05 +0200 |
|---|---|---|
| committer | Alex Bennée | 2019-10-28 16:12:38 +0100 |
| commit | ca76a66975f018c323cb609c0c55a4c8d4acde3b (patch) | |
| tree | 924f16d7c93f6d4fe9fe1cba8f818bf1718540ed /util | |
| parent | plugin: add qemu_plugin_insn_disas helper (diff) | |
| download | qemu-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 'util')
| -rw-r--r-- | util/log.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/log.c b/util/log.c index 1d1b33f7d9..1ca13059ee 100644 --- a/util/log.c +++ b/util/log.c @@ -273,6 +273,9 @@ const QEMULogItem qemu_log_items[] = { { CPU_LOG_TB_NOCHAIN, "nochain", "do not chain compiled TBs so that \"exec\" and \"cpu\" show\n" "complete traces" }, +#ifdef CONFIG_PLUGIN + { CPU_LOG_PLUGIN, "plugin", "output from TCG plugins\n"}, +#endif { 0, NULL, NULL }, }; |
