Lines Matching refs:dprintf1
117 dprintf1("enabled tracing\n"); in tracing_on()
173 dprintf1("dump[%03d][@%p]: %016llx\n", i, ptr, *ptr); in dump_mem()
181 dprintf1("%s(pkey=%d, flags=%lx) = %x / %d\n", in hw_pkey_get()
216 dprintf1("START->%s(%d, 0x%x)\n", __func__, in pkey_disable_set()
222 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_set()
233 dprintf1("%s(%d) shadow: 0x%016llx\n", in pkey_disable_set()
239 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_set()
242 dprintf1("%s(%d) pkey_reg: 0x%016llx\n", in pkey_disable_set()
246 dprintf1("END<---%s(%d, 0x%x)\n", __func__, in pkey_disable_set()
259 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_clear()
270 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_clear()
273 dprintf1("%s(%d) pkey_reg: 0x%016llx\n", __func__, in pkey_disable_clear()
334 dprintf1(">>>>===============SIGSEGV============================\n"); in signal_handler()
335 dprintf1("%s()::%d, pkey_reg: 0x%016llx shadow: %016llx\n", in signal_handler()
363 dprintf1("pkey_reg_xstate_offset: %d\n", pkey_reg_xstate_offset()); in signal_handler()
369 dprintf1("siginfo: %p\n", si); in signal_handler()
370 dprintf1(" fpregs: %p\n", fpregs); in signal_handler()
380 dprintf1("si_pkey_ptr: %p\n", si_pkey_ptr); in signal_handler()
390 dprintf1("signal pkey_reg from pkey_reg: %016llx\n", in signal_handler()
392 dprintf1("pkey from siginfo: %016llx\n", siginfo_pkey); in signal_handler()
394 dprintf1("signal pkey_reg from xsave: %08x\n", *pkey_reg_ptr); in signal_handler()
396 dprintf1("WARNING: set PKEY_REG=0 to allow faulting instruction to continue\n"); in signal_handler()
402 dprintf1("<<<<==================================================\n"); in signal_handler()
462 dprintf1("child sleeping...\n"); in fork_lazy_child()
492 dprintf1("%s(flags=%lx, init_val=%lx) syscall ret: %d errno: %d\n", in sys_pkey_alloc()
502 dprintf1("%s()::%d, pkey_reg: 0x%016llx shadow: %016llx\n", in alloc_pkey()
533 dprintf1("%s()::%d errno: %d\n", __func__, __LINE__, errno); in alloc_pkey()
546 dprintf1("%s(pkey=%ld) syscall ret: %d\n", __func__, pkey, ret); in sys_pkey_free()
590 dprintf1("%s()::%d, ret: %d pkey_reg: 0x%016llx" in alloc_random_pkey()
605 dprintf1("sys_mprotect_pkey(%p, %zx, prot=0x%lx, pkey=%ld) ret: %d\n", in mprotect_pkey()
610 dprintf1("%s()::%d, ret: %d pkey_reg: 0x%016llx" in mprotect_pkey()
615 dprintf1("%s()::%d, ret: %d pkey_reg: 0x%016llx" in mprotect_pkey()
623 dprintf1("mprotect_pkey(%p, %zx, prot=0x%lx, pkey=%ld) ret: %d\n", in mprotect_pkey()
626 dprintf1("%s()::%d, ret: %d pkey_reg: 0x%016llx" in mprotect_pkey()
711 dprintf1("doing %s(size=%ld, prot=0x%x, pkey=%d)\n", __func__, in malloc_pkey_with_mprotect()
721 dprintf1("%s() for pkey %d @ %p\n", __func__, pkey, ptr); in malloc_pkey_with_mprotect()
730 dprintf1("doing %s(size=%ld, prot=0x%x, pkey=%d)\n", __func__, in malloc_pkey_anon_huge()
742 dprintf1("unaligned ptr: %p\n", ptr); in malloc_pkey_anon_huge()
744 dprintf1(" aligned ptr: %p\n", ptr); in malloc_pkey_anon_huge()
746 dprintf1("MADV_HUGEPAGE ret: %d\n", ret); in malloc_pkey_anon_huge()
748 dprintf1("MADV_WILLNEED ret: %d\n", ret); in malloc_pkey_anon_huge()
751 dprintf1("mmap()'d thp for pkey %d @ %p\n", pkey, ptr); in malloc_pkey_anon_huge()
814 dprintf1("doing %s(%ld, %x, %x)\n", __func__, size, prot, pkey); in malloc_pkey_hugetlb()
823 dprintf1("mmap()'d hugetlbfs for pkey %d @ %p\n", pkey, ptr); in malloc_pkey_hugetlb()
832 dprintf1("doing %s(size=%ld, prot=0x%x, pkey=%d)\n", __func__, in malloc_pkey_mmap_dax()
845 dprintf1("mmap()'d for pkey %d @ %p\n", pkey, ptr); in malloc_pkey_mmap_dax()
920 dprintf1("%s() set pkey_reg=%016llx to restore state after signal " in expected_pkey_fault()
1028 dprintf1("disabling write access to PKEY[1], doing read\n"); in test_read_of_write_disabled_region()
1031 dprintf1("*ptr: %d\n", ptr_contents); in test_read_of_write_disabled_region()
1032 dprintf1("\n"); in test_read_of_write_disabled_region()
1038 dprintf1("disabling access to PKEY[%02d], doing read @ %p\n", pkey, ptr); in test_read_of_access_disabled_region()
1042 dprintf1("*ptr: %d\n", ptr_contents); in test_read_of_access_disabled_region()
1051 dprintf1("disabling access to PKEY[%02d], doing read @ %p\n", in test_read_of_access_disabled_region_with_page_already_mapped()
1054 dprintf1("reading ptr before disabling the read : %d\n", in test_read_of_access_disabled_region_with_page_already_mapped()
1059 dprintf1("*ptr: %d\n", ptr_contents); in test_read_of_access_disabled_region_with_page_already_mapped()
1067 dprintf1("disabling write access; after accessing the page, " in test_write_of_write_disabled_region_with_page_already_mapped()
1076 dprintf1("disabling write access to PKEY[%02d], doing write\n", pkey); in test_write_of_write_disabled_region()
1083 dprintf1("disabling access to PKEY[%02d], doing write\n", pkey); in test_write_of_access_disabled_region()
1093 dprintf1("disabling access; after accessing the page, " in test_write_of_access_disabled_region_with_page_already_mapped()
1105 dprintf1("disabling access to PKEY[%02d], " in test_kernel_write_of_access_disabled_region()
1109 dprintf1("read ret: %d\n", ret); in test_kernel_write_of_access_disabled_region()
1119 dprintf1("read ret: %d\n", ret); in test_kernel_write_of_write_disabled_region()
1134 dprintf1("disabling access to PKEY[%02d], " in test_kernel_gup_of_access_disabled_region()
1140 dprintf1("vmsplice() ret: %d\n", vmsplice_ret); in test_kernel_gup_of_access_disabled_region()
1153 dprintf1("disabling write to PKEY[%02d], " in test_kernel_gup_write_to_write_disabled_region()
1161 dprintf1("futex() ret: %d\n", futex_ret); in test_kernel_gup_write_to_write_disabled_region()
1175 dprintf1("trying get/set/free to non-allocated pkey: %2d\n", i); in test_pkey_syscalls_on_non_allocated_pkey()
1223 dprintf1("%s() alloc loop: %d\n", __func__, i); in test_pkey_alloc_exhaust()
1330 dprintf1("[%d] child pid: %d\n", getpid(), child_pid); in test_ptrace_of_child()
1335 dprintf1("[%d] attach ret: %ld %d\n", getpid(), ret, __LINE__); in test_ptrace_of_child()
1441 dprintf1("%s() start\n", __func__); in test_implicit_mprotect_exec_only_memory()
1481 dprintf1("SKIP: %s: no CPU support\n", __func__); in test_mprotect_pkey_on_unsupported_cpu()
1520 dprintf1("======================\n"); in run_tests_once()
1521 dprintf1("test %d preparing...\n", test_nr); in run_tests_once()
1525 dprintf1("test %d starting with pkey: %d\n", test_nr, pkey); in run_tests_once()
1527 dprintf1("test %d starting...\n", test_nr); in run_tests_once()
1529 dprintf1("freeing test memory: %p\n", ptr); in run_tests_once()
1533 dprintf1("pkey_faults: %d\n", pkey_faults); in run_tests_once()
1534 dprintf1("orig_pkey_faults: %d\n", orig_pkey_faults); in run_tests_once()
1540 dprintf1("======================\n\n"); in run_tests_once()