| /linux/arch/loongarch/kernel/ |
| H A D | inst.c | 17 unsigned long pc = regs->csr_era; in simu_pc() 45 regs->csr_era += LOONGARCH_INSN_SIZE; in simu_pc() 51 unsigned long pc = regs->csr_era; in simu_branch() 62 regs->csr_era = pc + sign_extend64((imm_h << 16 | imm_l) << 2, 27); in simu_branch() 65 regs->csr_era = pc + sign_extend64((imm_h << 16 | imm_l) << 2, 27); in simu_branch() 76 regs->csr_era = pc + sign_extend64((imm_h << 16 | imm_l) << 2, 22); in simu_branch() 78 regs->csr_era = pc + LOONGARCH_INSN_SIZE; in simu_branch() 82 regs->csr_era = pc + sign_extend64((imm_h << 16 | imm_l) << 2, 22); in simu_branch() 84 regs->csr_era = pc + LOONGARCH_INSN_SIZE; in simu_branch() 94 regs->csr_era = pc + sign_extend64(imm << 2, 17); in simu_branch() [all …]
|
| H A D | traps.c | 148 regs.csr_era = 0; in show_stack() 155 regs.csr_era = task->thread.reg01; in show_stack() 345 field, regs->csr_era, GPR_FIELD(1), GPR_FIELD(2), GPR_FIELD(3)); in __show_regs() 367 printk(" ERA: %0*lx\n", field, regs->csr_era); in __show_regs() 370 printk(" ERA: %0*lx %pS\n", field, regs->csr_era, (void *) regs->csr_era); in __show_regs() 402 show_code((void *)regs->csr_era, user_mode(regs)); in die() 533 fault_addr = (void __user *) regs->csr_era; in do_fpe() 581 if (regs->csr_badvaddr == regs->csr_era) in do_ale() 620 switch (report_bug(regs->csr_era, reg in bug_handler() [all...] |
| H A D | kprobes.c | 174 regs->csr_era = (unsigned long)p->ainsn.insn; in setup_singlestep() 213 kprobe_opcode_t *addr = (kprobe_opcode_t *)regs->csr_era; in kprobe_breakpoint_handler() 262 regs->csr_era = (unsigned long)addr; in kprobe_breakpoint_handler() 305 regs->csr_era = (unsigned long)cur->addr; in kprobe_fault_handler()
|
| H A D | ptrace.c | 84 r = membuf_write(&to, ®s->csr_era, sizeof(u64)); in gpr_get() 108 ®s->csr_era, in gpr_set() 824 REG_OFFSET_NAME(csr_era, csr_era), 971 tmp = task_pt_regs(target)->csr_era; in read_user() 994 task_pt_regs(target)->csr_era = data; in write_user() 1086 set_single_step(task, task_pt_regs(task)->csr_era); in user_enable_single_step() 1087 task->thread.single_step = task_pt_regs(task)->csr_era; in user_enable_single_step()
|
| H A D | signal.c | 669 err |= __put_user(regs->csr_era, &sc->sc_pc); in setup_sigcontext() 781 err |= __get_user(regs->csr_era, &sc->sc_pc); in restore_sigcontext() 974 regs->csr_era = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame() 978 frame, regs->csr_era, regs->regs[1]); in setup_rt_frame() 1004 regs->csr_era -= 4; in handle_signal() 1034 regs->csr_era -= 4; in arch_do_signal_or_restart() 1040 regs->csr_era -= 4; in arch_do_signal_or_restart()
|
| H A D | perf_regs.c | 43 return regs->csr_era; in perf_reg_value()
|
| H A D | syscall.c | 69 regs->csr_era += 4; in do_syscall()
|
| H A D | process.c | 101 regs->csr_era = pc; in start_thread() 403 uregs[LOONGARCH_EF_CSR_ERA] = regs->csr_era; in loongarch_dump_regs32()
|
| H A D | unwind_orc.c | 494 pc = regs->csr_era; in unwind_next_frame()
|
| H A D | asm-offsets.c | 62 OFFSET(PT_ERA, pt_regs, csr_era); in output_ptreg_defines()
|
| H A D | perf_event.c | 65 perf_callchain_store(entry, regs->csr_era); in perf_callchain_user()
|
| /linux/arch/loongarch/include/asm/ |
| H A D | branch.h | 12 return regs->csr_era; in exception_era() 17 regs->csr_era += 4; in compute_return_era()
|
| H A 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)
|
| H A D | stacktrace.h | 91 : "=m" (regs->csr_era) in prepare_frametrace()
|
| H A D | unwind.h | 63 state->pc = regs->csr_era; in __unwind_start()
|
| H A D | processor.h | 204 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->csr_era)
|
| /linux/arch/loongarch/mm/ |
| H A 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()
|
| H A D | fault.c | 95 raw_smp_processor_id(), field, address, field, regs->csr_era, in no_context() 159 (unsigned long) regs->csr_era); in do_sigsegv() 160 print_vma_addr(KERN_CONT " ", regs->csr_era); in do_sigsegv()
|
| /linux/arch/loongarch/include/uapi/asm/ |
| H A D | ptrace.h | 34 unsigned long csr_era; member
|
| /linux/samples/kprobes/ |
| H A D | kprobe_example.c | 60 p->symbol_name, p->addr, regs->csr_era, regs->csr_estat); in handler_pre()
|
| /linux/tools/lib/bpf/ |
| H A D | bpf_tracing.h | 449 #define __PT_IP_REG csr_era
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 647 regs->csr_era = (unsigned long)&ex->fixup - offset; in add_exception_handler()
|