The following two patches are what I use to instrument guest code and collect TLB hit/miss information. These patches are for informational and discussion purposes only.
Pranith Kumar (2): [TEST] aarch64: Use pmuserenr_el0 register for instrumentation [TEST] Collect TLB stats along with victim TLB accel/tcg/cputlb.c | 12 ++++++++++++ cpus.c | 26 ++++++++++++++++++++++++++ include/exec/cpu-defs.h | 4 ++++ include/sysemu/cpus.h | 2 ++ target/arm/helper.c | 23 +++++++++++++++++++++-- tcg/i386/tcg-target.inc.c | 16 ++++++++++++++-- vl.c | 3 +++ 7 files changed, 82 insertions(+), 4 deletions(-) -- 2.13.0