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