Lines Matching full:pc

34 	unsigned long fp, sp, pc;  in walk_stackframe()  local
41 pc = instruction_pointer(regs); in walk_stackframe()
45 pc = (unsigned long)walk_stackframe; in walk_stackframe()
51 pc = task->thread.ra; in walk_stackframe()
57 if (unlikely(!__kernel_text_address(pc) || (level++ >= 0 && !fn(arg, pc)))) in walk_stackframe()
66 if (regs && (regs->epc == pc) && fp_is_valid(frame->ra, sp)) { in walk_stackframe()
69 pc = regs->ra; in walk_stackframe()
72 pc = ftrace_graph_ret_addr(current, &graph_idx, frame->ra, in walk_stackframe()
74 if (pc == (unsigned long)ret_from_exception) { in walk_stackframe()
75 if (unlikely(!__kernel_text_address(pc) || !fn(arg, pc))) in walk_stackframe()
78 pc = ((struct pt_regs *)sp)->epc; in walk_stackframe()
91 unsigned long sp, pc; in walk_stackframe() local
96 pc = instruction_pointer(regs); in walk_stackframe()
99 pc = (unsigned long)walk_stackframe; in walk_stackframe()
103 pc = task->thread.ra; in walk_stackframe()
111 if (__kernel_text_address(pc) && unlikely(!fn(arg, pc))) in walk_stackframe()
113 pc = READ_ONCE_NOCHECK(*ksp++) - 0x4; in walk_stackframe()
119 static bool print_trace_address(void *arg, unsigned long pc) in print_trace_address() argument
123 print_ip_sym(loglvl, pc); in print_trace_address()
139 static bool save_wchan(void *arg, unsigned long pc) in save_wchan() argument
141 if (!in_sched_functions(pc)) { in save_wchan()
143 *p = pc; in save_wchan()
151 unsigned long pc = 0; in __get_wchan() local
155 walk_stackframe(task, NULL, save_wchan, &pc); in __get_wchan()
157 return pc; in __get_wchan()