Lines Matching refs:ret
68 ftrace_push_return_trace(unsigned long ret, unsigned long func, in ftrace_push_return_trace() argument
96 current->ret_stack[index].ret = ret; in ftrace_push_return_trace()
122 int function_graph_enter(unsigned long ret, unsigned long func, in function_graph_enter() argument
135 ftrace_find_rec_direct(ret - MCOUNT_INSN_SIZE)) in function_graph_enter()
141 if (ftrace_push_return_trace(ret, func, frame_pointer, retp)) in function_graph_enter()
158 ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret, in ftrace_pop_return_trace() argument
169 *ret = (unsigned long)panic; in ftrace_pop_return_trace()
195 current->ret_stack[index].ret); in ftrace_pop_return_trace()
196 *ret = (unsigned long)panic; in ftrace_pop_return_trace()
201 *ret = current->ret_stack[index].ret; in ftrace_pop_return_trace()
246 unsigned long ret; in ftrace_return_to_handler() local
248 ftrace_pop_return_trace(&trace, &ret, frame_pointer); in ftrace_return_to_handler()
259 if (unlikely(!ret)) { in ftrace_return_to_handler()
263 ret = (unsigned long)panic; in ftrace_return_to_handler()
266 return ret; in ftrace_return_to_handler()
308 unsigned long ret, unsigned long *retp) in ftrace_graph_ret_addr() argument
313 if (ret != (unsigned long)dereference_kernel_function_descriptor(return_to_handler)) in ftrace_graph_ret_addr()
314 return ret; in ftrace_graph_ret_addr()
317 return ret; in ftrace_graph_ret_addr()
321 return task->ret_stack[i].ret; in ftrace_graph_ret_addr()
323 return ret; in ftrace_graph_ret_addr()
327 unsigned long ret, unsigned long *retp) in ftrace_graph_ret_addr() argument
331 if (ret != (unsigned long)dereference_kernel_function_descriptor(return_to_handler)) in ftrace_graph_ret_addr()
332 return ret; in ftrace_graph_ret_addr()
337 return ret; in ftrace_graph_ret_addr()
342 return task->ret_stack[task_idx].ret; in ftrace_graph_ret_addr()
383 int ret = 0; in alloc_retstack_tasklist() local
395 ret = -ENOMEM; in alloc_retstack_tasklist()
403 ret = -EAGAIN; in alloc_retstack_tasklist()
422 return ret; in alloc_retstack_tasklist()
578 int ret, cpu; in start_graph_tracing() local
594 ret = alloc_retstack_tasklist(ret_stack_list); in start_graph_tracing()
595 } while (ret == -EAGAIN); in start_graph_tracing()
597 if (!ret) { in start_graph_tracing()
598 ret = register_trace_sched_switch(ftrace_graph_probe_sched_switch, NULL); in start_graph_tracing()
599 if (ret) in start_graph_tracing()
605 return ret; in start_graph_tracing()
610 int ret = 0; in register_ftrace_graph() local
616 ret = -EBUSY; in register_ftrace_graph()
623 ret = start_graph_tracing(); in register_ftrace_graph()
624 if (ret) { in register_ftrace_graph()
641 ret = ftrace_startup(&graph_ops, FTRACE_START_FUNC_RET); in register_ftrace_graph()
644 return ret; in register_ftrace_graph()