[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 10/15] cputlb: add tracepoints for TB invalidation
From: |
Alex Bennée |
Subject: |
[PATCH v1 10/15] cputlb: add tracepoints for TB invalidation |
Date: |
Fri, 8 Apr 2022 17:47:37 +0100 |
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
accel/tcg/translate-all.c | 2 ++
accel/tcg/trace-events | 1 +
2 files changed, 3 insertions(+)
diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
index e9f1cc179d..b0009177b9 100644
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -1180,6 +1180,8 @@ static void do_tb_phys_invalidate(TranslationBlock *tb,
bool rm_from_page_list)
assert_memory_lock();
+ trace_tb_phys_invalidate(tb, tb->pc);
+
/* make sure no further incoming jumps will be chained to this TB */
qemu_spin_lock(&tb->jmp_lock);
qatomic_set(&tb->cflags, tb->cflags | CF_INVALID);
diff --git a/accel/tcg/trace-events b/accel/tcg/trace-events
index e11e59492f..c034649dc2 100644
--- a/accel/tcg/trace-events
+++ b/accel/tcg/trace-events
@@ -14,5 +14,6 @@ memory_notdirty_write_access(uint64_t vaddr, uint64_t
ram_addr, unsigned size) "
memory_notdirty_set_dirty(uint64_t vaddr) "0x%" PRIx64
# translate-all.c
+tb_phys_invalidate(void *tb, uintptr_t pc) "tb:%p, pc:0x%"PRIxPTR""
tb_invalidate_phys_page_fast(uint64_t page_start, int len, uint64_t ret, int
wc, void *bmap) "addr:0x%" PRIx64 "/%d pc:0x%" PRIx64" wc:%d/%p"
translate_block(void *tb, uintptr_t pc, const void *tb_code) "tb:%p,
pc:0x%"PRIxPTR", tb_code:%p"
--
2.30.2
- [PATCH v1 01/15] tests/avocado: update aarch64_virt test to exercise -cpu max, (continued)
- [PATCH v1 01/15] tests/avocado: update aarch64_virt test to exercise -cpu max, Alex Bennée, 2022/04/08
- [PATCH v1 03/15] docs/devel: drop :hidden: and :includehidden: tags, Alex Bennée, 2022/04/08
- [PATCH v1 06/15] monitor: expose monitor_puts to rest of code, Alex Bennée, 2022/04/08
- [PATCH v1 05/15] accel/tcg: add tb_invalidate_phy_pages_fast tracepoint, Alex Bennée, 2022/04/08
- [PATCH v1 12/15] tests/tcg: add memory-sve test for aarch64, Alex Bennée, 2022/04/08
- [PATCH v1 08/15] disas: use result of ->read_memory_func, Alex Bennée, 2022/04/08
- [PATCH v1 10/15] cputlb: add tracepoints for TB invalidation,
Alex Bennée <=
- [PATCH v1 13/15] plugins: extend execlog to filter matches, Alex Bennée, 2022/04/08
- [PATCH v1 11/15] accel/tcg: add tb_invalidate_phys_page_range tracepoint, Alex Bennée, 2022/04/08
- [PATCH v1 15/15] accel/tcg: add heuristic to invalidate al TBs in a page [hack!], Alex Bennée, 2022/04/08
- [PATCH v1 14/15] plugins: Assert mmu_idx in range before use in qemu_plugin_get_hwaddr, Alex Bennée, 2022/04/08