/linux-6.6.21/arch/loongarch/kernel/ |
D | inst.c | 15 unsigned long pc = regs->csr_era; in simu_pc() 43 regs->csr_era += LOONGARCH_INSN_SIZE; in simu_pc() 49 unsigned long pc = regs->csr_era; in simu_branch() 60 regs->csr_era = pc + sign_extend64((imm_h << 16 | imm_l) << 2, 27); in simu_branch() 63 regs->csr_era = pc + sign_extend64((imm_h << 16 | imm_l) << 2, 27); in simu_branch() 74 regs->csr_era = pc + sign_extend64((imm_h << 16 | imm_l) << 2, 22); in simu_branch() 76 regs->csr_era = pc + LOONGARCH_INSN_SIZE; in simu_branch() 80 regs->csr_era = pc + sign_extend64((imm_h << 16 | imm_l) << 2, 22); in simu_branch() 82 regs->csr_era = pc + LOONGARCH_INSN_SIZE; in simu_branch() 92 regs->csr_era = pc + sign_extend64(imm << 2, 17); in simu_branch() [all …]
|
D | traps.c | 113 regs.csr_era = 0; in show_stack() 120 regs.csr_era = task->thread.reg01; in show_stack() 310 field, regs->csr_era, GPR_FIELD(1), GPR_FIELD(2), GPR_FIELD(3)); in __show_regs() 332 printk(" ERA: %0*lx\n", field, regs->csr_era); in __show_regs() 335 printk(" ERA: %0*lx %pS\n", field, regs->csr_era, (void *) regs->csr_era); in __show_regs() 367 show_code((void *)regs->csr_era, user_mode(regs)); in show_registers() 498 fault_addr = (void __user *) regs->csr_era; in do_fpe() 537 if (regs->csr_badvaddr == regs->csr_era) in do_ale() 569 switch (report_bug(regs->csr_era, regs)) { in bug_handler() 578 regs->csr_era += LOONGARCH_INSN_SIZE; in bug_handler() [all …]
|
D | kprobes.c | 172 regs->csr_era = (unsigned long)p->ainsn.insn; in setup_singlestep() 211 kprobe_opcode_t *addr = (kprobe_opcode_t *)regs->csr_era; in kprobe_breakpoint_handler() 260 regs->csr_era = (unsigned long)addr; in kprobe_breakpoint_handler() 303 regs->csr_era = (unsigned long)cur->addr; in kprobe_fault_handler()
|
D | stacktrace.c | 26 regs->csr_era = (unsigned long)__builtin_return_address(0); in arch_stack_walk() 29 regs->csr_era = thread_saved_ra(task); in arch_stack_walk()
|
D | ptrace.c | 84 r = membuf_write(&to, ®s->csr_era, sizeof(u64)); in gpr_get() 108 ®s->csr_era, in gpr_set() 809 REG_OFFSET_NAME(csr_era, csr_era), 956 tmp = task_pt_regs(target)->csr_era; in read_user() 979 task_pt_regs(target)->csr_era = data; in write_user() 1071 set_single_step(task, task_pt_regs(task)->csr_era); in user_enable_single_step() 1072 task->thread.single_step = task_pt_regs(task)->csr_era; in user_enable_single_step()
|
D | kgdb.c | 62 { "pc", GDB_SIZEOF_REG, offsetof(struct pt_regs, csr_era) }, 224 regs->csr_era = pc; in kgdb_arch_set_pc() 258 if (regs->csr_era == (unsigned long)&kgdb_breakinst) in kgdb_loongarch_notify() 259 regs->csr_era += LOONGARCH_INSN_SIZE; in kgdb_loongarch_notify() 290 regs->csr_era = addr; in kgdb_arch_update_addr()
|
D | unwind_prologue.c | 126 state->pc = regs->csr_era; in unwind_by_prologue() 211 pc = regs->csr_era; in next_frame()
|
D | perf_regs.c | 43 return regs->csr_era; in perf_reg_value()
|
D | syscall.c | 51 regs->csr_era += 4; in do_syscall()
|
D | signal.c | 693 err |= __put_user(regs->csr_era, &sc->sc_pc); in setup_sigcontext() 805 err |= __get_user(regs->csr_era, &sc->sc_pc); in restore_sigcontext() 998 regs->csr_era = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame() 1002 frame, regs->csr_era, regs->regs[1]); in setup_rt_frame() 1028 regs->csr_era -= 4; in handle_signal() 1058 regs->csr_era -= 4; in arch_do_signal_or_restart() 1064 regs->csr_era -= 4; in arch_do_signal_or_restart()
|
D | process.c | 94 regs->csr_era = pc; in start_thread() 367 uregs[LOONGARCH_EF_CSR_ERA] = regs->csr_era; in loongarch_dump_regs64()
|
D | uprobes.c | 93 auprobe->resume_era = regs->csr_era; in arch_uprobe_skip_sstep()
|
D | asm-offsets.c | 57 OFFSET(PT_ERA, pt_regs, csr_era); in output_ptreg_defines()
|
D | hw_breakpoint.c | 527 if (!((regs->csr_era ^ addr) & ~mask)) in hw_breakpoint_thread_switch()
|
D | perf_event.c | 65 perf_callchain_store(entry, regs->csr_era); in perf_callchain_user()
|
/linux-6.6.21/arch/loongarch/include/asm/ |
D | branch.h | 12 return regs->csr_era; in exception_era() 17 regs->csr_era += 4; in compute_return_era()
|
D | ptrace.h | 26 unsigned long csr_era; member 53 regs->csr_era = val; in instruction_pointer_set() 162 #define instruction_pointer(regs) ((regs)->csr_era)
|
D | unwind.h | 62 state->pc = regs->csr_era; in __unwind_start()
|
D | stacktrace.h | 83 : "=m" (regs->csr_era) in prepare_frametrace()
|
D | processor.h | 204 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->csr_era)
|
/linux-6.6.21/arch/loongarch/mm/ |
D | extable.c | 27 regs->csr_era = get_ex_fixup(ex); in ex_handler_fixup() 40 regs->csr_era = get_ex_fixup(ex); in ex_handler_uaccess_err_zero()
|
D | fault.c | 54 raw_smp_processor_id(), field, address, field, regs->csr_era, in no_context() 118 (unsigned long) regs->csr_era); in do_sigsegv() 119 print_vma_addr(KERN_CONT " ", regs->csr_era); in do_sigsegv()
|
/linux-6.6.21/arch/loongarch/include/uapi/asm/ |
D | ptrace.h | 38 unsigned long csr_era; member
|
/linux-6.6.21/samples/kprobes/ |
D | kprobe_example.c | 60 p->symbol_name, p->addr, regs->csr_era, regs->csr_estat); in handler_pre()
|
/linux-6.6.21/tools/lib/bpf/ |
D | bpf_tracing.h | 442 #define __PT_IP_REG csr_era
|