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);
208 * Probe 1 will trace function 1.
209 * Probe 2 will trace function 2.
210 * Probe 3 will trace functions 1 and 2.
325 static int trace_selftest_startup_dynamic_tracing(struct tracer *trace,
355 ret = tracer_init(trace, tr);
357 warn_failed_init_tracer(trace, ret);
385 /* check the trace buffer */
393 trace->reset(tr);
401 trace->reset(tr);
541 # define trace_selftest_startup_dynamic_tracing(trace, tr, func) ({ 0; })
594 * If DYNAMIC_FTRACE is not set, then we just trace all functions.
654 * Enable ftrace, sleep 1/10 second, and then read the trace
658 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr)
677 ret = tracer_init(trace, tr);
679 warn_failed_init_tracer(trace, ret);
689 /* check the trace buffer */
693 trace->reset(tr);
702 ret = trace_selftest_startup_dynamic_tracing(trace, tr,
726 /* Maximum number of functions to trace before diagnosing a hang */
732 static int trace_graph_entry_watchdog(struct ftrace_graph_ent *trace)
746 return trace_graph_entry(trace);
759 trace_selftest_startup_function_graph(struct tracer *trace,
780 warn_failed_init_tracer(trace, ret);
797 /* check the trace buffer */
826 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr)
833 ret = tracer_init(trace, tr);
835 warn_failed_init_tracer(trace, ret);
852 trace->stop(tr);
855 /* check both trace buffers */
859 trace->reset(tr);
875 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr)
895 ret = tracer_init(trace, tr);
897 warn_failed_init_tracer(trace, ret);
914 trace->stop(tr);
917 /* check both trace buffers */
921 trace->reset(tr);
937 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr)
957 ret = tracer_init(trace, tr);
959 warn_failed_init_tracer(trace, ret);
980 trace->stop(tr);
983 /* check both trace buffers */
1001 trace->start(tr);
1010 trace->stop(tr);
1013 /* check both trace buffers */
1029 trace->reset(tr);
1038 trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr)
1090 trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr)
1113 ret = tracer_init(trace, tr);
1115 warn_failed_init_tracer(trace, ret);
1143 /* check both trace buffers */
1149 trace->reset(tr);
1168 trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr)
1174 ret = tracer_init(trace, tr);
1176 warn_failed_init_tracer(trace, ret);
1184 /* check the trace buffer */
1186 trace->reset(tr);