Home
last modified time | relevance | path

Searched refs:nip (Results 1 – 25 of 61) sorted by relevance

123

/arch/powerpc/kernel/
Dtraps.c307 force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)regs->nip); in user_single_step_report()
327 addr, regs->nip, regs->link, code); in show_signal_msg()
329 print_vma_addr(KERN_CONT " in ", regs->nip); in show_signal_msg()
401 unsigned long nip = regs->nip; in hv_nmi_check_nonrecoverable() local
417 nip &= ~0xc000000000000000ULL; in hv_nmi_check_nonrecoverable()
418 if ((nip >= 0x500 && nip < 0x600) || (nip >= 0x4500 && nip < 0x4600)) in hv_nmi_check_nonrecoverable()
420 if ((nip >= 0x980 && nip < 0xa00) || (nip >= 0x4980 && nip < 0x4a00)) in hv_nmi_check_nonrecoverable()
422 if ((nip >= 0xe00 && nip < 0xec0) || (nip >= 0x4e00 && nip < 0x4ec0)) in hv_nmi_check_nonrecoverable()
424 if ((nip >= 0xf80 && nip < 0xfa0) || (nip >= 0x4f80 && nip < 0x4fa0)) in hv_nmi_check_nonrecoverable()
428 if (nip >= (unsigned long)(start_real_trampolines - kbase) && in hv_nmi_check_nonrecoverable()
[all …]
Doptprobes.c67 unsigned long nip = 0; in can_optimize() local
87 regs.nip = (unsigned long)p->addr; in can_optimize()
105 nip = regs.nip; in can_optimize()
108 return nip; in can_optimize()
124 regs->nip = (unsigned long)op->kp.addr; in optimized_callback()
195 unsigned long nip, size; in arch_prepare_optimized_kprobe() local
200 nip = can_optimize(p); in arch_prepare_optimized_kprobe()
201 if (!nip) in arch_prepare_optimized_kprobe()
224 (unsigned long)nip; in arch_prepare_optimized_kprobe()
276 patch_branch(buff + TMPL_RET_IDX, (unsigned long)nip, 0); in arch_prepare_optimized_kprobe()
Dkprobes-ftrace.c16 void kprobe_ftrace_handler(unsigned long nip, unsigned long parent_nip, in kprobe_ftrace_handler() argument
22 p = get_kprobe((kprobe_opcode_t *)nip); in kprobe_ftrace_handler()
34 regs->nip -= MCOUNT_INSN_SIZE; in kprobe_ftrace_handler()
43 regs->nip += MCOUNT_INSN_SIZE; in kprobe_ftrace_handler()
Dkgdb.c117 return kgdb_isremovedbreak(regs->nip); in kgdb_skipexception()
148 if (*(u32 *)regs->nip == BREAK_INSTR) in kgdb_handle_breakpoint()
149 regs->nip += BREAK_INSTR_SIZE; in kgdb_handle_breakpoint()
225 PACK64(ptr, regs->nip); in sleeping_thread_to_gdb_regs()
313 { "pc", GDB_SIZEOF_REG, offsetof(struct pt_regs, nip) },
374 regs->nip = pc; in kgdb_arch_set_pc()
396 linux_regs->nip = addr; in kgdb_arch_handle_exception()
Dkprobes.c170 regs->nip = (unsigned long)p->ainsn.insn; in prepare_singlestep()
261 unsigned int *addr = (unsigned int *)regs->nip; in kprobe_handler()
459 regs->nip = orig_ret_address - 4; in trampoline_probe_handler()
490 if (((unsigned long)cur->ainsn.insn + 4) != regs->nip) in kprobe_post_handler()
499 regs->nip = (unsigned long)cur->addr + 4; in kprobe_post_handler()
539 regs->nip = (unsigned long)cur->addr; in kprobe_fault_handler()
571 if ((entry = search_exception_tables(regs->nip)) != NULL) { in kprobe_fault_handler()
572 regs->nip = extable_fixup(entry); in kprobe_fault_handler()
Dmce_power.c373 pfn = addr_to_pfn(regs, regs->nip); in mce_find_instr_ea_and_phys()
375 instr_addr = (pfn << PAGE_SHIFT) + (regs->nip & ~PAGE_MASK); in mce_find_instr_ea_and_phys()
454 *addr = regs->nip; in mce_handle_ierror()
460 pfn = addr_to_pfn(regs, regs->nip); in mce_handle_ierror()
584 entry = search_kernel_exception_table(regs->nip); in mce_handle_ue_error()
587 regs->nip = extable_fixup(entry); in mce_handle_ue_error()
624 save_mce_event(regs, handled, &mce_err, regs->nip, addr, phys_addr); in mce_handle_error()
Duprobes.c57 regs->nip = current->utask->xol_vaddr; in arch_uprobe_pre_xol()
114 regs->nip = utask->vaddr + MAX_UINSN_BYTES; in arch_uprobe_post_xol()
Dprocess.c903 tsk->pid, thr->regs->nip, in tm_reclaim_task()
1221 unsigned long nip = regs->nip; in show_instructions() local
1222 unsigned long pc = regs->nip - (NR_INSN_TO_PRINT * 3 / 4 * sizeof(int)); in show_instructions()
1232 nip = (unsigned long)phys_to_virt(regs->nip); in show_instructions()
1245 if (nip == pc) in show_instructions()
1264 pc = regs->nip - (NR_INSN_TO_PRINT * 3 / 4 * sizeof(int)); in show_user_instructions()
1290 seq_buf_printf(&s, regs->nip == pc ? "<%08x> " : "%08x ", instr); in show_user_instructions()
1397 regs->nip, regs->link, regs->ctr); in show_regs()
1433 printk("NIP ["REG"] %pS\n", regs->nip, (void *)regs->nip); in show_regs()
1683 kregs->nip = ppc_function_entry(f); in copy_thread_tls()
[all …]
Dppc32.h17 unsigned int nip; member
/arch/powerpc/mm/
Dfault.c218 !search_exception_tables(regs->nip)) { in bad_kernel_fault()
229 if (!search_exception_tables(regs->nip)) in bad_kernel_fault()
259 unsigned int __user *nip = (unsigned int __user *)regs->nip; in bad_stack_expansion() local
281 access_ok(nip, sizeof(*nip))) { in bad_stack_expansion()
286 res = __get_user_inatomic(inst, nip); in bad_stack_expansion()
521 if (!is_user && !search_exception_tables(regs->nip)) in __do_page_fault()
550 if (fault_in_pages_readable((const char __user *)regs->nip, in __do_page_fault()
652 if ((entry = search_exception_tables(regs->nip)) != NULL) { in bad_page_fault()
653 regs->nip = extable_fixup(entry); in bad_page_fault()
670 regs->nip < PAGE_SIZE ? " (NULL pointer?)\n" : "\n"); in bad_page_fault()
[all …]
/arch/powerpc/kvm/
Dbook3s_hv_tm_builtin.c46 vcpu->arch.cfar = vcpu->arch.regs.nip - 4; in kvmhv_p9_tm_emulation_early()
47 vcpu->arch.regs.nip = vcpu->arch.shregs.srr0; in kvmhv_p9_tm_emulation_early()
69 vcpu->arch.cfar = vcpu->arch.regs.nip - 4; in kvmhv_p9_tm_emulation_early()
70 vcpu->arch.regs.nip = mfspr(SPRN_EBBRR); in kvmhv_p9_tm_emulation_early()
116 vcpu->arch.regs.nip = vcpu->arch.tfhar; in kvmhv_emulate_tm_rollback()
Dbook3s_hv_tm.c21 tfiar = vcpu->arch.regs.nip & ~0x3ull; in emulate_tx_failure()
70 vcpu->arch.cfar = vcpu->arch.regs.nip - 4; in kvmhv_p9_tm_emulation()
71 vcpu->arch.regs.nip = vcpu->arch.shregs.srr0; in kvmhv_p9_tm_emulation()
103 vcpu->arch.cfar = vcpu->arch.regs.nip - 4; in kvmhv_p9_tm_emulation()
104 vcpu->arch.regs.nip = vcpu->arch.ebbrr; in kvmhv_p9_tm_emulation()
/arch/powerpc/perf/
Dcallchain.c74 next_ip = regs->nip; in perf_callchain_kernel()
206 static int is_sigreturn_64_address(unsigned long nip, unsigned long fp) in is_sigreturn_64_address() argument
208 if (nip == fp + offsetof(struct signal_frame_64, tramp)) in is_sigreturn_64_address()
211 nip == current->mm->context.vdso_base + vdso64_rt_sigtramp) in is_sigreturn_64_address()
365 static int is_sigreturn_32_address(unsigned int nip, unsigned int fp) in is_sigreturn_32_address() argument
367 if (nip == fp + offsetof(struct signal_frame_32, mctx.mc_pad)) in is_sigreturn_32_address()
370 nip == current->mm->context.vdso_base + vdso32_sigtramp) in is_sigreturn_32_address()
375 static int is_rt_sigreturn_32_address(unsigned int nip, unsigned int fp) in is_rt_sigreturn_32_address() argument
377 if (nip == fp + offsetof(struct rt_signal_frame_32, in is_rt_sigreturn_32_address()
381 nip == current->mm->context.vdso_base + vdso32_rt_sigtramp) in is_rt_sigreturn_32_address()
/arch/powerpc/include/asm/
Dptrace.h32 unsigned long nip; member
119 return regs->nip; in instruction_pointer()
125 regs->nip = val; in instruction_pointer_set()
Dkvm_booke.h84 vcpu->arch.regs.nip = val; in kvmppc_set_pc()
89 return vcpu->arch.regs.nip; in kvmppc_get_pc()
Dperf_event.h36 (regs)->nip = __ip; \
Dlivepatch.h17 regs->nip = ip; in klp_arch_set_pc()
/arch/powerpc/lib/
Derror-inject.c14 regs->nip = regs->link; in override_function_with_return()
/arch/powerpc/platforms/embedded6xx/
Dmpc7448_hpc2.c170 if ((entry = search_exception_tables(regs->nip)) != NULL) { in mpc7448_machine_check_exception()
173 regs->nip = extable_fixup(entry); in mpc7448_machine_check_exception()
Dholly.c249 if ((entry = search_exception_tables(regs->nip)) != NULL) { in ppc750_machine_check_exception()
252 regs->nip = extable_fixup(entry); in ppc750_machine_check_exception()
/arch/powerpc/platforms/8xx/
Dmachine_check.c18 pr_cont("Fetch error at address %lx\n", regs->nip); in machine_check_8xx()
/arch/powerpc/xmon/
Dxmon.c510 bp = in_breakpoint_table(regs->nip, &offset); in xmon_core()
512 regs->nip = bp->address + offset; in xmon_core()
552 bp = at_breakpoint(regs->nip); in xmon_core()
563 xmon_print_symbol(regs->nip, " ", ")\n"); in xmon_core()
615 ppc_inst_dump(regs->nip, 1, 0); in xmon_core()
671 bp = at_breakpoint(regs->nip); in xmon_core()
674 xmon_print_symbol(regs->nip, " ", ")\n"); in xmon_core()
684 ppc_inst_dump(regs->nip, 1, 0); in xmon_core()
698 bp = at_breakpoint(regs->nip); in xmon_core()
700 regs->nip = (unsigned long) &bp->instr[0]; in xmon_core()
[all …]
/arch/powerpc/platforms/powernv/
Dopal.c535 _exception(SIGBUS, regs, BUS_MCEERR_AR, regs->nip); in opal_recover_mce()
668 static uint64_t find_recovery_address(uint64_t nip) in find_recovery_address() argument
673 if ((nip >= mc_recoverable_range[i].start_addr) && in find_recovery_address()
674 (nip < mc_recoverable_range[i].end_addr)) in find_recovery_address()
686 if ((regs->nip >= opal.base) && in opal_mce_check_early_recovery()
687 (regs->nip < (opal.base + opal.size))) in opal_mce_check_early_recovery()
688 recover_addr = find_recovery_address(regs->nip); in opal_mce_check_early_recovery()
694 regs->nip = recover_addr; in opal_mce_check_early_recovery()
/arch/openrisc/include/asm/
Dprocessor.h74 void start_thread(struct pt_regs *regs, unsigned long nip, unsigned long sp);
/arch/powerpc/platforms/pasemi/
Didle.c40 regs->nip = regs->link; in pasemi_system_reset_exception()

123