Lines Matching defs:trace

2 /* Include in trace.c */
55 printk(KERN_CONT ".. corrupted trace buffer .. ");
60 * Test the trace buffer to see if all the elements
97 static inline void warn_failed_init_tracer(struct tracer *trace, int init_ret)
100 trace->name, init_ret);
205 * Probe 1 will trace function 1.
206 * Probe 2 will trace function 2.
207 * Probe 3 will trace functions 1 and 2.
290 /* Remove trace function from probe 3 */
356 static int trace_selftest_startup_dynamic_tracing(struct tracer *trace,
386 ret = tracer_init(trace, tr);
388 warn_failed_init_tracer(trace, ret);
416 /* check the trace buffer */
424 trace->reset(tr);
432 trace->reset(tr);
572 # define trace_selftest_startup_dynamic_tracing(trace, tr, func) ({ 0; })
627 * If DYNAMIC_FTRACE is not set, then we just trace all functions.
687 * Enable ftrace, sleep 1/10 second, and then read the trace
691 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr)
710 ret = tracer_init(trace, tr);
712 warn_failed_init_tracer(trace, ret);
722 /* check the trace buffer */
726 trace->reset(tr);
735 ret = trace_selftest_startup_dynamic_tracing(trace, tr,
759 /* Maximum number of functions to trace before diagnosing a hang */
765 static int trace_graph_entry_watchdog(struct ftrace_graph_ent *trace)
779 return trace_graph_entry(trace);
796 trace_selftest_startup_function_graph(struct tracer *trace,
818 warn_failed_init_tracer(trace, ret);
835 /* check the trace buffer */
870 * and make sure we get graph trace.
882 warn_failed_init_tracer(trace, ret);
891 /* check the trace buffer */
928 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr)
935 ret = tracer_init(trace, tr);
937 warn_failed_init_tracer(trace, ret);
954 trace->stop(tr);
957 /* check both trace buffers */
961 trace->reset(tr);
977 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr)
997 ret = tracer_init(trace, tr);
999 warn_failed_init_tracer(trace, ret);
1016 trace->stop(tr);
1019 /* check both trace buffers */
1023 trace->reset(tr);
1039 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr)
1059 ret = tracer_init(trace, tr);
1061 warn_failed_init_tracer(trace, ret);
1082 trace->stop(tr);
1085 /* check both trace buffers */
1103 trace->start(tr);
1112 trace->stop(tr);
1115 /* check both trace buffers */
1131 trace->reset(tr);
1140 trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr)
1192 trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr)
1215 ret = tracer_init(trace, tr);
1217 warn_failed_init_tracer(trace, ret);
1245 /* check both trace buffers */
1251 trace->reset(tr);
1270 trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr)
1276 ret = tracer_init(trace, tr);
1278 warn_failed_init_tracer(trace, ret);
1286 /* check the trace buffer */
1288 trace->reset(tr);