Lines Matching refs:printf

164 	printf("[RUN]\tARCH_SET_GS to 0x%lx\n", value);  in check_gs_value()
171 printf("[OK]\tGSBASE was set as expected (selector 0x%hx)\n", in check_gs_value()
175 printf("[FAIL]\tGSBASE was not as expected: got 0x%lx (selector 0x%hx)\n", in check_gs_value()
182 printf("[OK]\tARCH_GET_GS worked as expected (selector 0x%hx)\n", in check_gs_value()
186 printf("[FAIL]\tARCH_GET_GS was not as expected: got 0x%lx (selector 0x%hx)\n", in check_gs_value()
195printf("[RUN]\tARCH_SET_GS to 0x%lx then mov 0 to %%gs%s\n", initial_base, schedule ? " and schedu… in mov_0_gs()
207 printf("[OK]\tGSBASE is 0x%lx\n", base); in mov_0_gs()
210 printf("[FAIL]\tGSBASE changed to 0x%lx but kernel reports 0x%lx\n", base, arch_base); in mov_0_gs()
241 printf("\tother thread: ARCH_SET_GS(0x%lx)%s -- sel is 0x%hx\n", in do_remote_base()
271 printf("\tusing LDT slot 0\n"); in load_gs()
295 printf("[NOTE]\tcould not create a segment -- test won't do anything\n"); in load_gs()
298 printf("\tusing GDT slot %d\n", desc.entry_number); in load_gs()
312 printf("[RUN]\tGS = 0x%hx, GSBASE = 0x%lx\n", index, base); in test_wrbase()
327 printf("[OK]\tIndex and base were preserved\n"); in test_wrbase()
329 printf("[FAIL]\tAfter switch, GS = 0x%hx and GSBASE = 0x%lx\n", in test_wrbase()
375 printf("[RUN]\tARCH_SET_GS(0x%lx)%s, then schedule to 0x%lx\n", in set_gs_and_switch_to()
378 printf("\tBefore schedule, set selector to 0x%hx\n", force_sel); in set_gs_and_switch_to()
386 printf("[FAIL]\tGSBASE wasn't set as expected\n"); in set_gs_and_switch_to()
412 printf("[OK]\tGS/BASE remained 0x%hx/0x%lx\n", in set_gs_and_switch_to()
420 printf("[OK]\tGS/BASE changed from 0x%hx/0x%lx to 0x%hx/0x%lx because IRET is defective\n", in set_gs_and_switch_to()
424 printf("[FAIL]\tGS/BASE changed from 0x%hx/0x%lx to 0x%hx/0x%lx\n", in set_gs_and_switch_to()
433 printf("[RUN]\tARCH_SET_GS(0), clear gs, then manipulate GSBASE in a different thread\n"); in test_unexpected_base()
445 printf("[OK]\tGSBASE remained 0\n"); in test_unexpected_base()
448 printf("[FAIL]\tGSBASE changed to 0x%lx\n", base); in test_unexpected_base()
463 printf("[RUN]\tPTRACE_POKE GS, read GSBASE back\n"); in test_ptrace_write_gs_read_base()
465 printf("[RUN]\tARCH_SET_GS to 1\n"); in test_ptrace_write_gs_read_base()
486 printf("[OK]\tGSBASE started at 1\n"); in test_ptrace_write_gs_read_base()
489 printf("[FAIL]\tGSBASE started at 0x%lx\n", base); in test_ptrace_write_gs_read_base()
492 printf("[RUN]\tSet GS = 0x7, read GSBASE\n"); in test_ptrace_write_gs_read_base()
502 printf("[OK]\tGSBASE reads as 0x%lx with invalid GS\n", base); in test_ptrace_write_gs_read_base()
505 printf("[FAIL]\tGSBASE=0x%lx (should be 0 or 1)\n", base); in test_ptrace_write_gs_read_base()
513 printf("[WARN]\tChild didn't exit cleanly.\n"); in test_ptrace_write_gs_read_base()
525 printf("[RUN]\tPTRACE_POKE(), write GSBASE from ptracer\n"); in test_ptrace_write_gsbase()
547 printf("[FAIL]\tGS is not prepared with nonzero\n"); in test_ptrace_write_gsbase()
565 printf("[FAIL]\tGS changed to %lx\n", gs); in test_ptrace_write_gsbase()
576 printf("\tNote: this is expected behavior on older kernels.\n"); in test_ptrace_write_gsbase()
579 printf("[FAIL]\tGSBASE changed to %lx\n", base); in test_ptrace_write_gsbase()
581 printf("[OK]\tGS remained 0x%hx", *shared_scratch); in test_ptrace_write_gsbase()
583 printf(" and GSBASE changed to 0xFF"); in test_ptrace_write_gsbase()
584 printf("\n"); in test_ptrace_write_gsbase()
592 printf("[WARN]\tChild didn't exit cleanly.\n"); in test_ptrace_write_gsbase()
610 printf("\tFSGSBASE instructions are enabled\n"); in main()
612 printf("\tFSGSBASE instructions are disabled\n"); in main()