Lines Matching refs:tester_ctx

67 } tester_ctx;  variable
89 pd_entry_t *pd = (pd_entry_t *)tester_ctx.levels[0]; in scan_l1()
92 pmap_kenter_pa(tester_ctx.levels[0], pa, VM_PROT_READ, 0); in scan_l1()
96 tester_ctx.coord.l1 = i; in scan_l1()
102 pmap_kremove(tester_ctx.levels[0], PAGE_SIZE); in scan_l1()
109 pd_entry_t *pd = (pd_entry_t *)tester_ctx.levels[1]; in scan_l2()
113 pmap_kenter_pa(tester_ctx.levels[1], pa, VM_PROT_READ, 0); in scan_l2()
117 tester_ctx.coord.l2 = i; in scan_l2()
129 pmap_kremove(tester_ctx.levels[1], PAGE_SIZE); in scan_l2()
136 pd_entry_t *pd = (pd_entry_t *)tester_ctx.levels[2]; in scan_l3()
140 pmap_kenter_pa(tester_ctx.levels[2], pa, VM_PROT_READ, 0); in scan_l3()
144 tester_ctx.coord.l3 = i; in scan_l3()
156 pmap_kremove(tester_ctx.levels[2], PAGE_SIZE); in scan_l3()
163 pd_entry_t *pd = (pd_entry_t *)tester_ctx.levels[3]; in scan_l4()
167 pmap_kenter_pa(tester_ctx.levels[3], pa, VM_PROT_READ, 0); in scan_l4()
171 tester_ctx.coord.l4 = i; in scan_l4()
183 pmap_kremove(tester_ctx.levels[3], PAGE_SIZE); in scan_l4()
212 tester_ctx.results.n_rwx += (NBPD_L4 / PAGE_SIZE); in count_krwx()
214 tester_ctx.results.n_rwx += (NBPD_L3 / PAGE_SIZE); in count_krwx()
216 tester_ctx.results.n_rwx += (NBPD_L2 / PAGE_SIZE); in count_krwx()
218 tester_ctx.results.n_rwx += (NBPD_L1 / PAGE_SIZE); in count_krwx()
237 tester_ctx.results.n_shstk += (NBPD_L4 / PAGE_SIZE); in count_kshstk()
239 tester_ctx.results.n_shstk += (NBPD_L3 / PAGE_SIZE); in count_kshstk()
241 tester_ctx.results.n_shstk += (NBPD_L2 / PAGE_SIZE); in count_kshstk()
243 tester_ctx.results.n_shstk += (NBPD_L1 / PAGE_SIZE); in count_kshstk()
269 tester_ctx.results.kernel_map_with_low_ptes |= true; in check_kernel_map()
287 tester_ctx.results.pte_is_user_accessible |= true; in check_pte_space()
302 tester_ctx.results.n_user_space_is_kernel += 1; in check_user_space()
321 tester_ctx.results.n_kernel_space_is_user += 1; in check_kernel_space()
337 tester_ctx.results.n_svs_g_bit_set += 1; in check_svs_g_bit()
352 tester_ctx.results.n_svs_g_bit_set = -1; in scan_svs()
388 memset(&tester_ctx.results, 0, sizeof(tester_ctx.results)); in x86_pte_run_scans()
408 tester_ctx.levels[i] = uvm_km_alloc(kernel_map, PAGE_SIZE, 0, in x86_pte_levels_init()
418 uvm_km_free(kernel_map, tester_ctx.levels[i], PAGE_SIZE, in x86_pte_levels_destroy()
434 *oldlenp = sizeof(tester_ctx.results); in x86_pte_sysctl_run()
438 if (*oldlenp < sizeof(tester_ctx.results)) in x86_pte_sysctl_run()
441 return copyout(&tester_ctx.results, oldp, sizeof(tester_ctx.results)); in x86_pte_sysctl_run()
447 struct sysctllog **log = &tester_ctx.ctx_sysctllog; in x86_pte_sysctl_init()
472 sysctl_teardown(&tester_ctx.ctx_sysctllog); in x86_pte_sysctl_destroy()