[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 09/10] contrib/plugins: reset skip when matching in execlog
From: |
Alex Bennée |
Subject: |
[PATCH v1 09/10] contrib/plugins: reset skip when matching in execlog |
Date: |
Wed, 21 Sep 2022 17:08:00 +0100 |
The purpose of the matches was to only track the execution of
instructions we care about. Without resetting skip to the value at the
start of the block we end up dumping all instructions after the match
with the consequent load on the instrumentation.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Alexandre Iooss <erdnaxe@crans.org>
---
contrib/plugins/execlog.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/contrib/plugins/execlog.c b/contrib/plugins/execlog.c
index e659ac9cbb..b5360f2c8e 100644
--- a/contrib/plugins/execlog.c
+++ b/contrib/plugins/execlog.c
@@ -147,6 +147,9 @@ static void vcpu_tb_trans(qemu_plugin_id_t id, struct
qemu_plugin_tb *tb)
/* Register callback on instruction */
qemu_plugin_register_vcpu_insn_exec_cb(insn, vcpu_insn_exec,
QEMU_PLUGIN_CB_NO_REGS,
output);
+
+ /* reset skip */
+ skip = (imatches || amatches) ? true : false;
}
}
--
2.34.1
- [PATCH v1 03/10] disas: use result of ->read_memory_func, (continued)
- [PATCH v1 03/10] disas: use result of ->read_memory_func, Alex Bennée, 2022/09/21
- [PATCH v1 08/10] docs/devel: move API to end of tcg-plugins.rst, Alex Bennée, 2022/09/21
- [PATCH v1 06/10] plugins: Assert mmu_idx in range before use in qemu_plugin_get_hwaddr, Alex Bennée, 2022/09/21
- [PATCH v1 02/10] disas: generalise plugin_printf and use for monitor_disas, Alex Bennée, 2022/09/21
- [PATCH v1 07/10] docs/devel: clean-up qemu invocations in tcg-plugins, Alex Bennée, 2022/09/21
- [PATCH v1 05/10] plugins: extend execlog to filter matches, Alex Bennée, 2022/09/21
- [PATCH v1 09/10] contrib/plugins: reset skip when matching in execlog,
Alex Bennée <=
- [PATCH v1 10/10] docs/devel: document the test plugins, Alex Bennée, 2022/09/21