Lines Matching defs:trace
15 #include <trace/events/sched.h>
18 #include "trace.h"
67 /* Add a function return address to the trace stack on thread info.*/
87 /* The return trace stack is full */
126 struct ftrace_graph_ent trace;
139 trace.func = func;
140 trace.depth = ++current->curr_ret_depth;
145 /* Only trace if the calling function expects to */
146 if (!ftrace_graph_entry(&trace))
157 /* Retrieve a function return address to the trace stack on thread info.*/
159 ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret,
180 * the function graph trace will fail. This test detects this
203 trace->func = current->ret_stack[index].func;
204 trace->calltime = current->ret_stack[index].calltime;
205 trace->overrun = atomic_read(¤t->trace_overrun);
206 trace->depth = current->curr_ret_depth--;
208 * We still want to trace interrupts coming in if
244 * Send the trace to the ring-buffer.
250 struct ftrace_graph_ret trace;
253 ftrace_pop_return_trace(&trace, &ret, frame_pointer);
255 trace.retval = fgraph_ret_regs_return_value(ret_regs);
257 trace.rettime = trace_clock_local();
258 ftrace_graph_return(&trace);
388 int ftrace_graph_entry_stub(struct ftrace_graph_ent *trace)
484 static int ftrace_graph_entry_test(struct ftrace_graph_ent *trace)
486 if (!ftrace_ops_test(&global_ops, trace->func, NULL))
488 return __ftrace_graph_entry(trace);
492 * The function graph tracer should only trace the functions defined
495 * function against the global ops, and not just trace any function