Home
last modified time | relevance | path

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

/tools/perf/arch/x86/tests/
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/
Dsysret_rip.c67 static volatile unsigned long rip; variable
73 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { in sigsegv_for_sigreturn_test()
75 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); in sigsegv_for_sigreturn_test()
82 printf("[OK]\tGot SIGSEGV at RIP=0x%lx\n", rip); in sigsegv_for_sigreturn_test()
92 ctx->uc_mcontext.gregs[REG_RIP] = rip; in sigusr1()
93 ctx->uc_mcontext.gregs[REG_RCX] = rip; in sigusr1()
106 rip = ip; in test_sigreturn_to()
117 if (rip != ctx->uc_mcontext.gregs[REG_RIP]) { in sigsegv_for_fallthrough()
119 rip, (unsigned long)ctx->uc_mcontext.gregs[REG_RIP]); in sigsegv_for_fallthrough()
150 rip = ip; in test_syscall_fallthrough_to()
Dptrace_syscall.c27 # define user_ip rip
/tools/lib/traceevent/plugins/
Dplugin_kvm.c40 static const char *disassemble(unsigned char *insn, int len, uint64_t rip, in disassemble() argument
57 ud_set_pc(&ud, rip); in disassemble()
70 static const char *disassemble(unsigned char *insn, int len, uint64_t rip, in disassemble() argument
298 unsigned long long rip, csbase, len, flags, failed; in kvm_emulate_insn_handler() local
303 if (tep_get_field_val(s, event, "rip", record, &rip, 1) < 0) in kvm_emulate_insn_handler()
322 disasm = disassemble(insn, len, rip, in kvm_emulate_insn_handler()
328 trace_seq_printf(s, "%llx:%llx: %s%s", csbase, rip, disasm, in kvm_emulate_insn_handler()
/tools/perf/util/
Dmap.c512 u64 map__rip_2objdump(struct map *map, u64 rip) in map__rip_2objdump() argument
529 return rip; in map__rip_2objdump()
532 return rip - map->pgoff; in map__rip_2objdump()
539 return rip + map->dso->text_offset; in map__rip_2objdump()
541 return map->unmap_ip(map, rip) - map->reloc; in map__rip_2objdump()
Dmap.h76 u64 map__rip_2objdump(struct map *map, u64 rip);
Dintel-pt.c1734 sample.ip = items->rip; in intel_pt_synth_pebs_sample()
/tools/perf/util/intel-pt-decoder/
Dintel-pt-decoder.h160 uint64_t rip; member
/tools/testing/selftests/kvm/x86_64/
Dsync_regs_test.c63 REG_COMPARE(rip); in compare_regs()
/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c306 static inline void init_vmcs_guest_state(void *rip, void *rsp) in init_vmcs_guest_state() argument
368 vmwrite(GUEST_RIP, (uint64_t)rip); in init_vmcs_guest_state()
Dprocessor.c115 regs->rip, regs->rflags); in regs_dump()
666 regs.rip = (unsigned long) guest_code; in vm_vcpu_add_default()
/tools/arch/x86/include/uapi/asm/
Dkvm.h122 __u64 rip, rflags; member
/tools/testing/selftests/bpf/
Dbpf_helpers.h406 #define PT_REGS_IP(x) ((x)->rip)
/tools/include/uapi/linux/
Dkvm.h316 __u64 rip; member