Lines Matching refs:dprintf1

139 	dprintf1("enabled tracing\n");  in tracing_on()
232 dprintf1("dump[%03d][@%p]: %016jx\n", i, ptr, *ptr); in dump_mem()
273 dprintf1(">>>>===============SIGSEGV============================\n"); in signal_handler()
274 dprintf1("%s()::%d, pkru: 0x%x shadow: %x\n", __func__, __LINE__, in signal_handler()
295 dprintf1("siginfo: %p\n", si); in signal_handler()
296 dprintf1(" fpregs: %p\n", fpregs); in signal_handler()
301 dprintf1("pkru_xstate_offset: %d\n", pkru_xstate_offset()); in signal_handler()
314 dprintf1("si_pkey_ptr: %p\n", si_pkey_ptr); in signal_handler()
320 dprintf1("signal pkru from xsave: %08x\n", *pkru_ptr); in signal_handler()
322 dprintf1("signal pkru from pkru: %08x\n", __rdpkru()); in signal_handler()
323 dprintf1("pkey from siginfo: %jx\n", siginfo_pkey); in signal_handler()
325 dprintf1("WARNING: set PRKU=0 to allow faulting instruction to continue\n"); in signal_handler()
327 dprintf1("<<<<==================================================\n"); in signal_handler()
387 dprintf1("child sleeping...\n"); in fork_lazy_child()
409 dprintf1("%s(pkey=%d, flags=%lx) = %x / %d\n", in hw_pkey_get()
454 dprintf1("START->%s(%d, 0x%x)\n", __func__, in pkey_disable_set()
460 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_set()
470 dprintf1("%s(%d) shadow: 0x%x\n", __func__, pkey, shadow_pkru); in pkey_disable_set()
475 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_set()
478 dprintf1("%s(%d) pkru: 0x%x\n", __func__, pkey, rdpkru()); in pkey_disable_set()
481 dprintf1("END<---%s(%d, 0x%x)\n", __func__, in pkey_disable_set()
494 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_clear()
506 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_clear()
509 dprintf1("%s(%d) pkru: 0x%x\n", __func__, pkey, rdpkru()); in pkey_disable_clear()
554 dprintf1("%s(flags=%lx, init_val=%lx) syscall ret: %d errno: %d\n", in sys_pkey_alloc()
564 dprintf1("alloc_pkey()::%d, pkru: 0x%x shadow: %x\n", in alloc_pkey()
586 dprintf1("alloc_pkey()::%d errno: %d\n", __LINE__, errno); in alloc_pkey()
597 dprintf1("%s(pkey=%ld) syscall ret: %d\n", __func__, pkey, ret); in sys_pkey_free()
641 dprintf1("%s()::%d, ret: %d pkru: 0x%x shadow: 0x%x\n", __func__, in alloc_random_pkey()
655 dprintf1("sys_mprotect_pkey(%p, %zx, prot=0x%lx, pkey=%ld) ret: %d\n", in mprotect_pkey()
660 dprintf1("%s()::%d, ret: %d pkru: 0x%x shadow: 0x%x\n", __func__, in mprotect_pkey()
663 dprintf1("%s()::%d, ret: %d pkru: 0x%x shadow: 0x%x\n", __func__, in mprotect_pkey()
669 dprintf1("mprotect_pkey(%p, %zx, prot=0x%lx, pkey=%ld) ret: %d\n", in mprotect_pkey()
672 dprintf1("%s()::%d, ret: %d pkru: 0x%x shadow: 0x%x\n", __func__, in mprotect_pkey()
756 dprintf1("doing %s(size=%ld, prot=0x%x, pkey=%d)\n", __func__, in malloc_pkey_with_mprotect()
766 dprintf1("%s() for pkey %d @ %p\n", __func__, pkey, ptr); in malloc_pkey_with_mprotect()
775 dprintf1("doing %s(size=%ld, prot=0x%x, pkey=%d)\n", __func__, in malloc_pkey_anon_huge()
787 dprintf1("unaligned ptr: %p\n", ptr); in malloc_pkey_anon_huge()
789 dprintf1(" aligned ptr: %p\n", ptr); in malloc_pkey_anon_huge()
791 dprintf1("MADV_HUGEPAGE ret: %d\n", ret); in malloc_pkey_anon_huge()
793 dprintf1("MADV_WILLNEED ret: %d\n", ret); in malloc_pkey_anon_huge()
796 dprintf1("mmap()'d thp for pkey %d @ %p\n", pkey, ptr); in malloc_pkey_anon_huge()
850 dprintf1("doing %s(%ld, %x, %x)\n", __func__, size, prot, pkey); in malloc_pkey_hugetlb()
859 dprintf1("mmap()'d hugetlbfs for pkey %d @ %p\n", pkey, ptr); in malloc_pkey_hugetlb()
868 dprintf1("doing %s(size=%ld, prot=0x%x, pkey=%d)\n", __func__, in malloc_pkey_mmap_dax()
881 dprintf1("mmap()'d for pkey %d @ %p\n", pkey, ptr); in malloc_pkey_mmap_dax()
951 dprintf1("%s() set PKRU=%x to restore state after signal nuked it\n", in expected_pk_fault()
1007 dprintf1("disabling write access to PKEY[1], doing read\n"); in test_read_of_write_disabled_region()
1010 dprintf1("*ptr: %d\n", ptr_contents); in test_read_of_write_disabled_region()
1011 dprintf1("\n"); in test_read_of_write_disabled_region()
1017 dprintf1("disabling access to PKEY[%02d], doing read @ %p\n", pkey, ptr); in test_read_of_access_disabled_region()
1021 dprintf1("*ptr: %d\n", ptr_contents); in test_read_of_access_disabled_region()
1026 dprintf1("disabling write access to PKEY[%02d], doing write\n", pkey); in test_write_of_write_disabled_region()
1033 dprintf1("disabling access to PKEY[%02d], doing write\n", pkey); in test_write_of_access_disabled_region()
1043 dprintf1("disabling access to PKEY[%02d], " in test_kernel_write_of_access_disabled_region()
1047 dprintf1("read ret: %d\n", ret); in test_kernel_write_of_access_disabled_region()
1057 dprintf1("read ret: %d\n", ret); in test_kernel_write_of_write_disabled_region()
1072 dprintf1("disabling access to PKEY[%02d], " in test_kernel_gup_of_access_disabled_region()
1078 dprintf1("vmsplice() ret: %d\n", vmsplice_ret); in test_kernel_gup_of_access_disabled_region()
1091 dprintf1("disabling write to PKEY[%02d], " in test_kernel_gup_write_to_write_disabled_region()
1099 dprintf1("futex() ret: %d\n", futex_ret); in test_kernel_gup_write_to_write_disabled_region()
1113 dprintf1("trying get/set/free to non-allocated pkey: %2d\n", i); in test_pkey_syscalls_on_non_allocated_pkey()
1161 dprintf1("%s() alloc loop: %d\n", __func__, i); in test_pkey_alloc_exhaust()
1257 dprintf1("[%d] child pid: %d\n", getpid(), child_pid); in test_ptrace_of_child()
1262 dprintf1("[%d] attach ret: %ld %d\n", getpid(), ret, __LINE__); in test_ptrace_of_child()
1370 dprintf1("%s() start\n", __func__); in test_implicit_mprotect_exec_only_memory()
1412 dprintf1("SKIP: %s: no CPU support\n", __func__); in test_mprotect_pkey_on_unsupported_cpu()
1447 dprintf1("======================\n"); in run_tests_once()
1448 dprintf1("test %d preparing...\n", test_nr); in run_tests_once()
1452 dprintf1("test %d starting with pkey: %d\n", test_nr, pkey); in run_tests_once()
1454 dprintf1("test %d starting...\n", test_nr); in run_tests_once()
1456 dprintf1("freeing test memory: %p\n", ptr); in run_tests_once()
1460 dprintf1("pkru_faults: %d\n", pkru_faults); in run_tests_once()
1461 dprintf1("orig_pkru_faults: %d\n", orig_pkru_faults); in run_tests_once()
1467 dprintf1("======================\n\n"); in run_tests_once()