Lines Matching refs:dprintf1
124 dprintf1("enabled tracing\n"); in tracing_on()
180 dprintf1("dump[%03d][@%p]: %016llx\n", i, ptr, *ptr); in dump_mem()
188 dprintf1("%s(pkey=%d, flags=%lx) = %x / %d\n", in hw_pkey_get()
222 dprintf1("START->%s(%d, 0x%x)\n", __func__, in pkey_disable_set()
228 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_set()
239 dprintf1("%s(%d) shadow: 0x%016llx\n", in pkey_disable_set()
245 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_set()
248 dprintf1("%s(%d) pkey_reg: 0x%016llx\n", in pkey_disable_set()
250 dprintf1("END<---%s(%d, 0x%x)\n", __func__, in pkey_disable_set()
262 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_clear()
273 dprintf1("%s(%d) hw_pkey_get(%d): %x\n", __func__, in pkey_disable_clear()
276 dprintf1("%s(%d) pkey_reg: 0x%016llx\n", __func__, in pkey_disable_clear()
328 dprintf1(">>>>===============SIGSEGV============================\n"); in signal_handler()
329 dprintf1("%s()::%d, pkey_reg: 0x%016llx shadow: %016llx\n", in signal_handler()
359 dprintf1("pkey_reg_xstate_offset: %d\n", pkey_reg_xstate_offset()); in signal_handler()
365 dprintf1("siginfo: %p\n", si); in signal_handler()
367 dprintf1(" fpregs: %p\n", fpregs); in signal_handler()
378 dprintf1("si_pkey_ptr: %p\n", si_pkey_ptr); in signal_handler()
388 dprintf1("signal pkey_reg from pkey_reg: %016llx\n", in signal_handler()
390 dprintf1("pkey from siginfo: %016llx\n", siginfo_pkey); in signal_handler()
392 dprintf1("signal pkey_reg from xsave: %08x\n", *pkey_reg_ptr); in signal_handler()
394 dprintf1("WARNING: set PKEY_REG=0 to allow faulting instruction to continue\n"); in signal_handler()
402 dprintf1("<<<<==================================================\n"); in signal_handler()
456 dprintf1("child sleeping...\n"); in fork_lazy_child()
468 dprintf1("%s()::%d, pkey_reg: 0x%016llx shadow: %016llx\n", in alloc_pkey()
499 dprintf1("%s()::%d errno: %d\n", __func__, __LINE__, errno); in alloc_pkey()
548 dprintf1("%s()::%d, ret: %d pkey_reg: 0x%016llx" in alloc_random_pkey()
563 dprintf1("sys_mprotect_pkey(%p, %zx, prot=0x%lx, pkey=%ld) ret: %d\n", in mprotect_pkey()
568 dprintf1("%s()::%d, ret: %d pkey_reg: 0x%016llx" in mprotect_pkey()
573 dprintf1("%s()::%d, ret: %d pkey_reg: 0x%016llx" in mprotect_pkey()
581 dprintf1("mprotect_pkey(%p, %zx, prot=0x%lx, pkey=%ld) ret: %d\n", in mprotect_pkey()
584 dprintf1("%s()::%d, ret: %d pkey_reg: 0x%016llx" in mprotect_pkey()
668 dprintf1("doing %s(size=%ld, prot=0x%x, pkey=%d)\n", __func__, in malloc_pkey_with_mprotect()
678 dprintf1("%s() for pkey %d @ %p\n", __func__, pkey, ptr); in malloc_pkey_with_mprotect()
687 dprintf1("doing %s(size=%ld, prot=0x%x, pkey=%d)\n", __func__, in malloc_pkey_anon_huge()
699 dprintf1("unaligned ptr: %p\n", ptr); in malloc_pkey_anon_huge()
701 dprintf1(" aligned ptr: %p\n", ptr); in malloc_pkey_anon_huge()
703 dprintf1("MADV_HUGEPAGE ret: %d\n", ret); in malloc_pkey_anon_huge()
705 dprintf1("MADV_WILLNEED ret: %d\n", ret); in malloc_pkey_anon_huge()
708 dprintf1("mmap()'d thp for pkey %d @ %p\n", pkey, ptr); in malloc_pkey_anon_huge()
771 dprintf1("doing %s(%ld, %x, %x)\n", __func__, size, prot, pkey); in malloc_pkey_hugetlb()
780 dprintf1("mmap()'d hugetlbfs for pkey %d @ %p\n", pkey, ptr); in malloc_pkey_hugetlb()
852 dprintf1("%s() set pkey_reg=%016llx to restore state after signal " in expected_pkey_fault()
950 dprintf1("disabling write access to PKEY[1], doing read\n"); in test_read_of_write_disabled_region()
953 dprintf1("*ptr: %d\n", ptr_contents); in test_read_of_write_disabled_region()
954 dprintf1("\n"); in test_read_of_write_disabled_region()
960 dprintf1("disabling access to PKEY[%02d], doing read @ %p\n", pkey, ptr); in test_read_of_access_disabled_region()
964 dprintf1("*ptr: %d\n", ptr_contents); in test_read_of_access_disabled_region()
973 dprintf1("disabling access to PKEY[%02d], doing read @ %p\n", in test_read_of_access_disabled_region_with_page_already_mapped()
976 dprintf1("reading ptr before disabling the read : %d\n", in test_read_of_access_disabled_region_with_page_already_mapped()
981 dprintf1("*ptr: %d\n", ptr_contents); in test_read_of_access_disabled_region_with_page_already_mapped()
989 dprintf1("disabling write access; after accessing the page, " in test_write_of_write_disabled_region_with_page_already_mapped()
998 dprintf1("disabling write access to PKEY[%02d], doing write\n", pkey); in test_write_of_write_disabled_region()
1005 dprintf1("disabling access to PKEY[%02d], doing write\n", pkey); in test_write_of_access_disabled_region()
1015 dprintf1("disabling access; after accessing the page, " in test_write_of_access_disabled_region_with_page_already_mapped()
1027 dprintf1("disabling access to PKEY[%02d], " in test_kernel_write_of_access_disabled_region()
1031 dprintf1("read ret: %d\n", ret); in test_kernel_write_of_access_disabled_region()
1042 dprintf1("read ret: %d\n", ret); in test_kernel_write_of_write_disabled_region()
1057 dprintf1("disabling access to PKEY[%02d], " in test_kernel_gup_of_access_disabled_region()
1063 dprintf1("vmsplice() ret: %d\n", vmsplice_ret); in test_kernel_gup_of_access_disabled_region()
1076 dprintf1("disabling write to PKEY[%02d], " in test_kernel_gup_write_to_write_disabled_region()
1084 dprintf1("futex() ret: %d\n", futex_ret); in test_kernel_gup_write_to_write_disabled_region()
1098 dprintf1("trying get/set/free to non-allocated pkey: %2d\n", i); in test_pkey_syscalls_on_non_allocated_pkey()
1146 dprintf1("%s() alloc loop: %d\n", __func__, i); in test_pkey_alloc_exhaust()
1325 dprintf1("[%d] child pid: %d\n", getpid(), child_pid); in test_ptrace_of_child()
1330 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()
1689 dprintf1("SKIP: %s: no CPU support\n", __func__); in test_mprotect_pkey_on_unsupported_cpu()
1732 dprintf1("======================\n"); in run_tests_once()
1733 dprintf1("test %d preparing...\n", test_nr); in run_tests_once()
1737 dprintf1("test %d starting with pkey: %d\n", test_nr, pkey); in run_tests_once()
1739 dprintf1("test %d starting...\n", test_nr); in run_tests_once()
1741 dprintf1("freeing test memory: %p\n", ptr); in run_tests_once()
1745 dprintf1("pkey_faults: %d\n", pkey_faults); in run_tests_once()
1746 dprintf1("orig_pkey_faults: %d\n", orig_pkey_faults); in run_tests_once()
1752 dprintf1("======================\n\n"); in run_tests_once()