Home
last modified time | relevance | path

Searched refs:csr_era (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.6.21/arch/loongarch/kernel/
Dinst.c15 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 …]
Dtraps.c113 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 …]
Dkprobes.c172 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()
Dstacktrace.c26 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()
Dptrace.c84 r = membuf_write(&to, &regs->csr_era, sizeof(u64)); in gpr_get()
108 &regs->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()
Dkgdb.c62 { "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()
Dunwind_prologue.c126 state->pc = regs->csr_era; in unwind_by_prologue()
211 pc = regs->csr_era; in next_frame()
Dperf_regs.c43 return regs->csr_era; in perf_reg_value()
Dsyscall.c51 regs->csr_era += 4; in do_syscall()
Dsignal.c693 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()
Dprocess.c94 regs->csr_era = pc; in start_thread()
367 uregs[LOONGARCH_EF_CSR_ERA] = regs->csr_era; in loongarch_dump_regs64()
Duprobes.c93 auprobe->resume_era = regs->csr_era; in arch_uprobe_skip_sstep()
Dasm-offsets.c57 OFFSET(PT_ERA, pt_regs, csr_era); in output_ptreg_defines()
Dhw_breakpoint.c527 if (!((regs->csr_era ^ addr) & ~mask)) in hw_breakpoint_thread_switch()
Dperf_event.c65 perf_callchain_store(entry, regs->csr_era); in perf_callchain_user()
/linux-6.6.21/arch/loongarch/include/asm/
Dbranch.h12 return regs->csr_era; in exception_era()
17 regs->csr_era += 4; in compute_return_era()
Dptrace.h26 unsigned long csr_era; member
53 regs->csr_era = val; in instruction_pointer_set()
162 #define instruction_pointer(regs) ((regs)->csr_era)
Dunwind.h62 state->pc = regs->csr_era; in __unwind_start()
Dstacktrace.h83 : "=m" (regs->csr_era) in prepare_frametrace()
Dprocessor.h204 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->csr_era)
/linux-6.6.21/arch/loongarch/mm/
Dextable.c27 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()
Dfault.c54 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/
Dptrace.h38 unsigned long csr_era; member
/linux-6.6.21/samples/kprobes/
Dkprobe_example.c60 p->symbol_name, p->addr, regs->csr_era, regs->csr_estat); in handler_pre()
/linux-6.6.21/tools/lib/bpf/
Dbpf_tracing.h442 #define __PT_IP_REG csr_era

12