Home
last modified time | relevance | path

Searched refs:rip (Results 1 – 25 of 39) sorted by relevance

12

/tools/perf/arch/x86/tests/
A Dbp-modify.c63 unsigned long rip = 0, dr7 = 1; in bp_modify1() local
112 rip = ptrace(PTRACE_PEEKUSER, child, in bp_modify1()
113 offsetof(struct user_regs_struct, rip), NULL); in bp_modify1()
114 if (rip == (unsigned long) -1) { in bp_modify1()
120 pr_debug("rip %lx, bp_1 %p\n", rip, bp_1); in bp_modify1()
128 return rip == (unsigned long) bp_1 ? TEST_OK : TEST_FAIL; in bp_modify1()
140 unsigned long rip = 0, dr7 = 1; in bp_modify2() local
188 rip = ptrace(PTRACE_PEEKUSER, child, in bp_modify2()
189 offsetof(struct user_regs_struct, rip), NULL); in bp_modify2()
190 if (rip == (unsigned long) -1) { in bp_modify2()
[all …]
/tools/testing/selftests/x86/
A Dsysret_rip.c39 static volatile unsigned long rip; variable
45 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { in sigsegv_for_sigreturn_test()
47 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); in sigsegv_for_sigreturn_test()
54 printf("[OK]\tGot SIGSEGV at RIP=0x%lx\n", rip); in sigsegv_for_sigreturn_test()
64 ctx->uc_mcontext.gregs[REG_RIP] = rip; in sigusr1()
65 ctx->uc_mcontext.gregs[REG_RCX] = rip; in sigusr1()
78 rip = ip; in test_sigreturn_to()
89 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { in sigsegv_for_fallthrough()
91 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); in sigsegv_for_fallthrough()
122 rip = ip; in test_syscall_fallthrough_to()
A Dnx_stack.c156 unsigned long rip = uc->uc_mcontext.gregs[RIP]; in sigtrap() local
157 printf("FAIL\texecutable page on the stack: " RIP_STRING " %lx\n", rip); in sigtrap()
A Dfsgsbase_restore.c200 regs2.rip = (unsigned long)tracee_zap_segment; in main()
/tools/testing/selftests/kvm/x86/
A Dhyperv_svm_test.c99 vmcb->save.rip += 3; in guest_code()
106 vmcb->save.rip += 2; /* rdmsr */ in guest_code()
112 vmcb->save.rip += 2; /* rdmsr */ in guest_code()
121 vmcb->save.rip += 3; /* vmcall */ in guest_code()
127 vmcb->save.rip += 2; /* rdmsr */ in guest_code()
136 vmcb->save.rip += 2; /* rdmsr */ in guest_code()
A Dsvm_nested_soft_inject_test.c36 GUEST_ASSERT_EQ(regs->rip, (unsigned long)l2_guest_code_int); in guest_int_handler()
101 vmcb->control.next_rip = vmcb->save.rip; in l1_guest_code()
124 vmcb->save.rip += 3; in l1_guest_code()
132 vmcb->control.next_rip = vmcb->save.rip + 2; in l1_guest_code()
A Dnested_emulation_test.c62 vmcb->save.rip = (u64)l2_guest_code; in guest_code()
102 exit_insn_len = vmcb->control.next_rip - vmcb->save.rip; in guest_code()
103 GUEST_ASSERT_EQ(vmcb->save.rip, (u64)l2_instruction); in guest_code()
A Dflds_emulation.h48 regs.rip += 2; in handle_flds_emulation_failure_exit()
A Dfix_hypercall_test.c26 regs->rip += HYPERCALL_INSN_SIZE; in guest_ud_handler()
A Duserspace_msr_exit_test.c359 if (regs->rip == (uintptr_t)r_start) { in __guest_gp_handler()
360 regs->rip = (uintptr_t)r_end; in __guest_gp_handler()
363 } else if (regs->rip == (uintptr_t)w_start) { in __guest_gp_handler()
364 regs->rip = (uintptr_t)w_end; in __guest_gp_handler()
A Ddebug_regs.c77 regs.rip += insn_len; in vcpu_skip_insn()
A Dstate_test.c48 vmcb->save.rip += 3; in svm_l1_guest_code()
/tools/perf/util/
A Damd-sample-raw.c239 __u64 *rip = (__u64 *)op_ctl + 1; in amd_dump_ibs_op() local
240 union ibs_op_data *op_data = (union ibs_op_data *)(rip + 1); in amd_dump_ibs_op()
241 union ibs_op_data3 *op_data3 = (union ibs_op_data3 *)(rip + 3); in amd_dump_ibs_op()
245 printf("IbsOpRip:\t%016llx\n", *rip); in amd_dump_ibs_op()
252 pr_ibs_op_data2(*(union ibs_op_data2 *)(rip + 2)); in amd_dump_ibs_op()
255 printf("IbsDCLinAd:\t%016llx\n", *(rip + 4)); in amd_dump_ibs_op()
257 printf("IbsDCPhysAd:\t%016llx\n", *(rip + 5)); in amd_dump_ibs_op()
258 if (op_data->op_brn_ret && *(rip + 6)) in amd_dump_ibs_op()
259 printf("IbsBrTarget:\t%016llx\n", *(rip + 6)); in amd_dump_ibs_op()
A Dmap.h114 static inline u64 map__dso_unmap_ip(const struct map *map, u64 rip) in map__dso_unmap_ip() argument
116 return rip + map__start(map) - map__pgoff(map); in map__dso_unmap_ip()
136 u64 map__rip_2objdump(struct map *map, u64 rip);
A Dmap.c527 u64 map__rip_2objdump(struct map *map, u64 rip) in map__rip_2objdump() argument
549 return rip; in map__rip_2objdump()
552 return rip - map__pgoff(map); in map__rip_2objdump()
555 return rip + dso__text_offset(dso); in map__rip_2objdump()
557 return map__unmap_ip(map, rip) - map__reloc(map); in map__rip_2objdump()
/tools/testing/selftests/net/mptcp/
A Duserspace_pm.sh577 ip netns exec "$ns1" ./pm_nl_ctl csf lip 10.0.2.1 lid 23 rip 10.0.2.2\
591 ip netns exec "$ns1" ./pm_nl_ctl dsf lip 10.0.2.1 lport "$sport" rip 10.0.2.2 rport\
615 ip netns exec "$ns1" ./pm_nl_ctl csf lip dead:beef:2::1 lid 23 rip\
629 ip netns exec "$ns1" ./pm_nl_ctl dsf lip dead:beef:2::1 lport "$sport" rip\
654 ip netns exec "$ns1" ./pm_nl_ctl csf lip 10.0.2.1 lid 23 rip 10.0.2.2 rport\
693 ip netns exec "$ns2" ./pm_nl_ctl csf lip 10.0.2.2 lid 23 rip 10.0.2.1 rport\
730 ip netns exec "$ns2" ./pm_nl_ctl csf lip dead:beef:2::2 lid 23 rip\
745 ip netns exec "$ns2" ./pm_nl_ctl dsf lip dead:beef:2::2 lport "$sport" rip\
769 ip netns exec "$ns2" ./pm_nl_ctl csf lip 10.0.2.2 lid 23 rip 10.0.2.1 rport\
814 ip netns exec "$ns2" ./pm_nl_ctl csf lip 10.0.2.2 lid 23 rip 10.0.2.1 rport\
[all …]
A Dpm_nl_ctl.c1327 void *rip = NULL; in set_flags() local
1441 rip = argv[arg]; in set_flags()
1458 if (rip) { in set_flags()
1467 if (inet_pton(AF_INET, rip, RTA_DATA(rta))) { in set_flags()
1471 } else if (inet_pton(AF_INET6, rip, RTA_DATA(rta))) { in set_flags()
1476 error(1, errno, "can't parse ip %s", (char *)rip); in set_flags()
/tools/testing/selftests/sgx/
A Dcall.S30 call *vdso_sgx_enter_enclave(%rip)
A Dtest_encl_bootstrap.S47 lea __encl_base(%rip), %rax
49 lea encl_stack(%rip), %rax
/tools/testing/selftests/kvm/lib/x86/
A Dmemstress.c108 regs.rip = (unsigned long) memstress_l1_guest_code; in memstress_setup_nested()
A Dsvm.c102 vmcb->save.rip = (u64)guest_rip; in generic_svm_setup()
A Dprocessor.c46 regs->rip, regs->rflags); in regs_dump()
556 if (regs->r9 != KVM_EXCEPTION_MAGIC || regs->rip != regs->r10) in kvm_fixup_exception()
562 regs->rip = regs->r11; in kvm_fixup_exception()
582 regs->vector, regs->rip); in route_exception()
659 regs.rip = (unsigned long) guest_code; in vcpu_arch_set_entry_point()
/tools/testing/selftests/kvm/
A Dset_memory_region_test.c320 TEST_ASSERT(regs.rip >= final_rip_start && in test_delete_memory_region()
321 regs.rip < final_rip_end, in test_delete_memory_region()
323 final_rip_start, final_rip_end, regs.rip); in test_delete_memory_region()
/tools/testing/selftests/bpf/prog_tests/
A Duprobe_syscall.c144 case offsetof(struct pt_regs, rip): in test_uretprobe_regs_equal()
/tools/perf/util/intel-pt-decoder/
A Dintel-pt-decoder.h167 uint64_t rip; member

Completed in 32 milliseconds

12