Lines Matching full:trace
2 /* Include in trace.c */
55 printk(KERN_CONT ".. corrupted trace buffer .. "); in trace_test_buffer_cpu()
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) in warn_failed_init_tracer() argument
100 trace->name, init_ret); in warn_failed_init_tracer()
205 * Probe 1 will trace function 1. in trace_selftest_ops()
206 * Probe 2 will trace function 2. in trace_selftest_ops()
207 * Probe 3 will trace functions 1 and 2. in trace_selftest_ops()
290 /* Remove trace function from probe 3 */ in trace_selftest_ops()
356 static int trace_selftest_startup_dynamic_tracing(struct tracer *trace, in trace_selftest_startup_dynamic_tracing() argument
386 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing()
388 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_dynamic_tracing()
416 /* check the trace buffer */ in trace_selftest_startup_dynamic_tracing()
424 trace->reset(tr); in trace_selftest_startup_dynamic_tracing()
432 trace->reset(tr); in trace_selftest_startup_dynamic_tracing()
572 # define trace_selftest_startup_dynamic_tracing(trace, tr, func) ({ 0; }) argument
627 * If DYNAMIC_FTRACE is not set, then we just trace all functions. in trace_selftest_function_regs()
687 * Enable ftrace, sleep 1/10 second, and then read the trace
691 trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_function() argument
710 ret = tracer_init(trace, tr); in trace_selftest_startup_function()
712 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_function()
722 /* check the trace buffer */ in trace_selftest_startup_function()
726 trace->reset(tr); in trace_selftest_startup_function()
735 ret = trace_selftest_startup_dynamic_tracing(trace, tr, in trace_selftest_startup_function()
759 /* Maximum number of functions to trace before diagnosing a hang */
765 static int trace_graph_entry_watchdog(struct ftrace_graph_ent *trace) in trace_graph_entry_watchdog() argument
779 return trace_graph_entry(trace); in trace_graph_entry_watchdog()
796 trace_selftest_startup_function_graph(struct tracer *trace, in trace_selftest_startup_function_graph() argument
818 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_function_graph()
835 /* check the trace buffer */ in trace_selftest_startup_function_graph()
864 * and make sure we get graph trace. in trace_selftest_startup_function_graph()
873 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_function_graph()
882 /* check the trace buffer */ in trace_selftest_startup_function_graph()
916 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_irqsoff() argument
923 ret = tracer_init(trace, tr); in trace_selftest_startup_irqsoff()
925 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_irqsoff()
942 trace->stop(tr); in trace_selftest_startup_irqsoff()
945 /* check both trace buffers */ in trace_selftest_startup_irqsoff()
949 trace->reset(tr); in trace_selftest_startup_irqsoff()
965 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptoff() argument
985 ret = tracer_init(trace, tr); in trace_selftest_startup_preemptoff()
987 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_preemptoff()
1004 trace->stop(tr); in trace_selftest_startup_preemptoff()
1007 /* check both trace buffers */ in trace_selftest_startup_preemptoff()
1011 trace->reset(tr); in trace_selftest_startup_preemptoff()
1027 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptirqsoff() argument
1047 ret = tracer_init(trace, tr); in trace_selftest_startup_preemptirqsoff()
1049 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_preemptirqsoff()
1070 trace->stop(tr); in trace_selftest_startup_preemptirqsoff()
1073 /* check both trace buffers */ in trace_selftest_startup_preemptirqsoff()
1091 trace->start(tr); in trace_selftest_startup_preemptirqsoff()
1100 trace->stop(tr); in trace_selftest_startup_preemptirqsoff()
1103 /* check both trace buffers */ in trace_selftest_startup_preemptirqsoff()
1119 trace->reset(tr); in trace_selftest_startup_preemptirqsoff()
1128 trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_nop() argument
1180 trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_wakeup() argument
1203 ret = tracer_init(trace, tr); in trace_selftest_startup_wakeup()
1205 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_wakeup()
1233 /* check both trace buffers */ in trace_selftest_startup_wakeup()
1239 trace->reset(tr); in trace_selftest_startup_wakeup()
1258 trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_branch() argument
1264 ret = tracer_init(trace, tr); in trace_selftest_startup_branch()
1266 warn_failed_init_tracer(trace, ret); in trace_selftest_startup_branch()
1274 /* check the trace buffer */ in trace_selftest_startup_branch()
1276 trace->reset(tr); in trace_selftest_startup_branch()