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()
182 static int trace_selftest_ops(struct trace_array *tr, int cnt) in trace_selftest_ops() argument
219 ftrace_init_array_ops(tr, trace_selftest_test_global_func); in trace_selftest_ops()
220 register_ftrace_function(tr->ops); in trace_selftest_ops()
335 unregister_ftrace_function(tr->ops); in trace_selftest_ops()
336 ftrace_reset_array_ops(tr); in trace_selftest_ops()
357 struct trace_array *tr, in trace_selftest_startup_dynamic_tracing() argument
386 ret = tracer_init(trace, tr); in trace_selftest_startup_dynamic_tracing()
396 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing()
417 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing()
424 trace->reset(tr); in trace_selftest_startup_dynamic_tracing()
431 ret = trace_selftest_ops(tr, 1); in trace_selftest_startup_dynamic_tracing()
432 trace->reset(tr); in trace_selftest_startup_dynamic_tracing()
442 ret = trace_selftest_ops(tr, 2); in trace_selftest_startup_dynamic_tracing()
572 # define trace_selftest_startup_dynamic_tracing(trace, tr, func) ({ 0; }) argument
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()
723 ret = trace_test_buffer(&tr->array_buffer, &count); 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()
797 struct trace_array *tr) in trace_selftest_startup_function_graph() argument
814 tracing_reset_online_cpus(&tr->array_buffer); in trace_selftest_startup_function_graph()
815 set_graph_array(tr); in trace_selftest_startup_function_graph()
836 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_function_graph()
851 tracing_reset_online_cpus(&tr->array_buffer); in trace_selftest_startup_function_graph()
852 set_graph_array(tr); in trace_selftest_startup_function_graph()
883 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_function_graph()
916 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_irqsoff() argument
918 unsigned long save_max = tr->max_latency; in trace_selftest_startup_irqsoff()
923 ret = tracer_init(trace, tr); in trace_selftest_startup_irqsoff()
930 tr->max_latency = 0; in trace_selftest_startup_irqsoff()
942 trace->stop(tr); in trace_selftest_startup_irqsoff()
946 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_irqsoff()
948 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_irqsoff()
949 trace->reset(tr); in trace_selftest_startup_irqsoff()
957 tr->max_latency = save_max; in trace_selftest_startup_irqsoff()
965 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptoff() argument
967 unsigned long save_max = tr->max_latency; in trace_selftest_startup_preemptoff()
985 ret = tracer_init(trace, tr); in trace_selftest_startup_preemptoff()
992 tr->max_latency = 0; in trace_selftest_startup_preemptoff()
1004 trace->stop(tr); in trace_selftest_startup_preemptoff()
1008 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_preemptoff()
1010 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_preemptoff()
1011 trace->reset(tr); in trace_selftest_startup_preemptoff()
1019 tr->max_latency = save_max; in trace_selftest_startup_preemptoff()
1027 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptirqsoff() argument
1029 unsigned long save_max = tr->max_latency; in trace_selftest_startup_preemptirqsoff()
1047 ret = tracer_init(trace, tr); in trace_selftest_startup_preemptirqsoff()
1054 tr->max_latency = 0; in trace_selftest_startup_preemptirqsoff()
1070 trace->stop(tr); in trace_selftest_startup_preemptirqsoff()
1074 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_preemptirqsoff()
1078 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_preemptirqsoff()
1089 tr->max_latency = 0; in trace_selftest_startup_preemptirqsoff()
1091 trace->start(tr); in trace_selftest_startup_preemptirqsoff()
1100 trace->stop(tr); in trace_selftest_startup_preemptirqsoff()
1104 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_preemptirqsoff()
1108 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_preemptirqsoff()
1119 trace->reset(tr); in trace_selftest_startup_preemptirqsoff()
1120 tr->max_latency = save_max; 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
1182 unsigned long save_max = tr->max_latency; in trace_selftest_startup_wakeup()
1203 ret = tracer_init(trace, tr); in trace_selftest_startup_wakeup()
1210 tr->max_latency = 0; in trace_selftest_startup_wakeup()
1234 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_wakeup()
1236 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_wakeup()
1239 trace->reset(tr); in trace_selftest_startup_wakeup()
1242 tr->max_latency = save_max; 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()
1275 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_branch()
1276 trace->reset(tr); in trace_selftest_startup_branch()