aboutsummaryrefslogtreecommitdiff
path: root/include/exec/cputlb.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2018-10-19 14:36:43 -0700
committerRichard Henderson <richard.henderson@linaro.org>2018-10-31 12:16:30 +0000
commite09de0a20d42e5e76e91ffc7f9f4787e225e1ec2 (patch)
tree8619f49edf4361b8fe33f44db5efb8fb9defe23a /include/exec/cputlb.h
parentf8144c6c1e7574a8f2da05709a81bfc8b9215d77 (diff)
downloadqemu-e09de0a20d42e5e76e91ffc7f9f4787e225e1ec2.zip
qemu-e09de0a20d42e5e76e91ffc7f9f4787e225e1ec2.tar.gz
qemu-e09de0a20d42e5e76e91ffc7f9f4787e225e1ec2.tar.bz2
cputlb: Count "partial" and "elided" tlb flushes
Our only statistic so far was "full" tlb flushes, where all mmu_idx are flushed at the same time. Now count "partial" tlb flushes where sets of mmu_idx are flushed, but the set is not maximal. Account one per mmu_idx flushed, as that is the unit of work performed. We don't actually count elided flushes yet, but go ahead and change the interface presented to the monitor all at once. Tested-by: Emilio G. Cota <cota@braap.org> Reviewed-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec/cputlb.h')
-rw-r--r--include/exec/cputlb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exec/cputlb.h b/include/exec/cputlb.h
index c91db21..5373188 100644
--- a/include/exec/cputlb.h
+++ b/include/exec/cputlb.h
@@ -23,6 +23,6 @@
/* cputlb.c */
void tlb_protect_code(ram_addr_t ram_addr);
void tlb_unprotect_code(ram_addr_t ram_addr);
-size_t tlb_flush_count(void);
+void tlb_flush_counts(size_t *full, size_t *part, size_t *elide);
#endif
#endif