Print the index of a PTE in addition to its level. If there's a test bug that causes an unwanted collision, the index is critical information to understanding what has gone wrong. Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> --- x86/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/access.c b/x86/access.c index 6ccdb76..6c1e20e 100644 --- a/x86/access.c +++ b/x86/access.c @@ -690,7 +690,7 @@ static void ac_setup_specific_pages(ac_test_t *at, ac_pt_env_t *pt_env, static void __dump_pte(pt_element_t *ptep, int level, unsigned long virt) { - printf("------L%d: %lx\n", level, *ptep); + printf("------L%d I%lu: %lx\n", level, PT_INDEX(virt, level), *ptep); } static void dump_mapping(ac_test_t *at) -- 2.34.0.rc2.393.gf8c9666880-goog