• Home
  • Raw
  • Download

Lines Matching refs:tr

70 	arch_spin_lock(&buf->tr->max_lock);  in trace_test_buffer()
88 arch_spin_unlock(&buf->tr->max_lock); in trace_test_buffer()
185 static int trace_selftest_ops(struct trace_array *tr, int cnt) in trace_selftest_ops() argument
222 ftrace_init_array_ops(tr, trace_selftest_test_global_func); in trace_selftest_ops()
223 register_ftrace_function(tr->ops); in trace_selftest_ops()
304 unregister_ftrace_function(tr->ops); in trace_selftest_ops()
305 ftrace_reset_array_ops(tr); in trace_selftest_ops()
326 struct trace_array *tr, in trace_selftest_startup_dynamic_tracing() argument
355 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing()
365 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing()
386 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing()
393 trace->reset(tr); in trace_selftest_startup_dynamic_tracing()
400 ret = trace_selftest_ops(tr, 1); in trace_selftest_startup_dynamic_tracing()
401 trace->reset(tr); in trace_selftest_startup_dynamic_tracing()
411 ret = trace_selftest_ops(tr, 2); in trace_selftest_startup_dynamic_tracing()
541 # define trace_selftest_startup_dynamic_tracing(trace, tr, func) ({ 0; }) argument
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()
690 ret = trace_test_buffer(&tr->array_buffer, &count); 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()
760 struct trace_array *tr) in trace_selftest_startup_function_graph() argument
776 tracing_reset_online_cpus(&tr->array_buffer); in trace_selftest_startup_function_graph()
777 set_graph_array(tr); in trace_selftest_startup_function_graph()
798 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_function_graph()
826 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_irqsoff() argument
828 unsigned long save_max = tr->max_latency; in trace_selftest_startup_irqsoff()
833 ret = tracer_init(trace, tr); in trace_selftest_startup_irqsoff()
840 tr->max_latency = 0; in trace_selftest_startup_irqsoff()
852 trace->stop(tr); in trace_selftest_startup_irqsoff()
856 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_irqsoff()
858 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_irqsoff()
859 trace->reset(tr); in trace_selftest_startup_irqsoff()
867 tr->max_latency = save_max; in trace_selftest_startup_irqsoff()
875 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptoff() argument
877 unsigned long save_max = tr->max_latency; in trace_selftest_startup_preemptoff()
895 ret = tracer_init(trace, tr); in trace_selftest_startup_preemptoff()
902 tr->max_latency = 0; in trace_selftest_startup_preemptoff()
914 trace->stop(tr); in trace_selftest_startup_preemptoff()
918 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_preemptoff()
920 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_preemptoff()
921 trace->reset(tr); in trace_selftest_startup_preemptoff()
929 tr->max_latency = save_max; in trace_selftest_startup_preemptoff()
937 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptirqsoff() argument
939 unsigned long save_max = tr->max_latency; in trace_selftest_startup_preemptirqsoff()
957 ret = tracer_init(trace, tr); in trace_selftest_startup_preemptirqsoff()
964 tr->max_latency = 0; in trace_selftest_startup_preemptirqsoff()
980 trace->stop(tr); in trace_selftest_startup_preemptirqsoff()
984 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_preemptirqsoff()
988 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_preemptirqsoff()
999 tr->max_latency = 0; in trace_selftest_startup_preemptirqsoff()
1001 trace->start(tr); in trace_selftest_startup_preemptirqsoff()
1010 trace->stop(tr); in trace_selftest_startup_preemptirqsoff()
1014 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_preemptirqsoff()
1018 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_preemptirqsoff()
1029 trace->reset(tr); in trace_selftest_startup_preemptirqsoff()
1030 tr->max_latency = save_max; 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
1092 unsigned long save_max = tr->max_latency; in trace_selftest_startup_wakeup()
1113 ret = tracer_init(trace, tr); in trace_selftest_startup_wakeup()
1120 tr->max_latency = 0; in trace_selftest_startup_wakeup()
1144 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_wakeup()
1146 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_wakeup()
1149 trace->reset(tr); in trace_selftest_startup_wakeup()
1152 tr->max_latency = save_max; 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()
1185 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_branch()
1186 trace->reset(tr); in trace_selftest_startup_branch()