Lines Matching full:pc

35 	unsigned long fp, sp, pc;  in walk_stackframe()  local
42 pc = instruction_pointer(regs); in walk_stackframe()
46 pc = (unsigned long)walk_stackframe; in walk_stackframe()
52 pc = task->thread.ra; in walk_stackframe()
58 if (unlikely(!__kernel_text_address(pc) || (level++ >= 0 && !fn(arg, pc)))) in walk_stackframe()
67 if (regs && (regs->epc == pc) && fp_is_valid(frame->ra, sp)) { in walk_stackframe()
70 pc = regs->ra; in walk_stackframe()
73 pc = ftrace_graph_ret_addr(current, &graph_idx, frame->ra, in walk_stackframe()
75 if (pc >= (unsigned long)handle_exception && in walk_stackframe()
76 pc < (unsigned long)&ret_from_exception_end) { in walk_stackframe()
77 if (unlikely(!__kernel_text_address(pc) || !fn(arg, pc))) in walk_stackframe()
80 pc = ((struct pt_regs *)sp)->epc; in walk_stackframe()
93 unsigned long sp, pc; in walk_stackframe() local
98 pc = instruction_pointer(regs); in walk_stackframe()
101 pc = (unsigned long)walk_stackframe; in walk_stackframe()
105 pc = task->thread.ra; in walk_stackframe()
113 if (__kernel_text_address(pc) && unlikely(!fn(arg, pc))) in walk_stackframe()
115 pc = READ_ONCE_NOCHECK(*ksp++) - 0x4; in walk_stackframe()
121 static bool print_trace_address(void *arg, unsigned long pc) in print_trace_address() argument
125 print_ip_sym(loglvl, pc); in print_trace_address()
141 static bool save_wchan(void *arg, unsigned long pc) in save_wchan() argument
143 if (!in_sched_functions(pc)) { in save_wchan()
145 *p = pc; in save_wchan()
153 unsigned long pc = 0; in __get_wchan() local
157 walk_stackframe(task, NULL, save_wchan, &pc); in __get_wchan()
159 return pc; in __get_wchan()