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()
1059 struct trace_array *tr) in trace_selftest_startup_function_graph() argument
1076 tracing_reset_online_cpus(&tr->array_buffer); in trace_selftest_startup_function_graph()
1077 fgraph_ops.private = tr; in trace_selftest_startup_function_graph()
1098 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_function_graph()
1119 tracing_reset_online_cpus(&tr->array_buffer); in trace_selftest_startup_function_graph()
1120 fgraph_ops.private = tr; in trace_selftest_startup_function_graph()
1154 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_function_graph()
1192 trace_selftest_startup_irqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_irqsoff() argument
1194 unsigned long save_max = tr->max_latency; in trace_selftest_startup_irqsoff()
1199 ret = tracer_init(trace, tr); in trace_selftest_startup_irqsoff()
1206 tr->max_latency = 0; in trace_selftest_startup_irqsoff()
1218 trace->stop(tr); in trace_selftest_startup_irqsoff()
1222 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_irqsoff()
1224 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_irqsoff()
1225 trace->reset(tr); in trace_selftest_startup_irqsoff()
1233 tr->max_latency = save_max; in trace_selftest_startup_irqsoff()
1241 trace_selftest_startup_preemptoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptoff() argument
1243 unsigned long save_max = tr->max_latency; in trace_selftest_startup_preemptoff()
1261 ret = tracer_init(trace, tr); in trace_selftest_startup_preemptoff()
1268 tr->max_latency = 0; in trace_selftest_startup_preemptoff()
1280 trace->stop(tr); in trace_selftest_startup_preemptoff()
1284 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_preemptoff()
1286 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_preemptoff()
1287 trace->reset(tr); in trace_selftest_startup_preemptoff()
1295 tr->max_latency = save_max; in trace_selftest_startup_preemptoff()
1303 trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_preemptirqsoff() argument
1305 unsigned long save_max = tr->max_latency; in trace_selftest_startup_preemptirqsoff()
1323 ret = tracer_init(trace, tr); in trace_selftest_startup_preemptirqsoff()
1330 tr->max_latency = 0; in trace_selftest_startup_preemptirqsoff()
1346 trace->stop(tr); in trace_selftest_startup_preemptirqsoff()
1350 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_preemptirqsoff()
1354 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_preemptirqsoff()
1365 tr->max_latency = 0; in trace_selftest_startup_preemptirqsoff()
1367 trace->start(tr); in trace_selftest_startup_preemptirqsoff()
1376 trace->stop(tr); in trace_selftest_startup_preemptirqsoff()
1380 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_preemptirqsoff()
1384 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_preemptirqsoff()
1395 trace->reset(tr); in trace_selftest_startup_preemptirqsoff()
1396 tr->max_latency = save_max; in trace_selftest_startup_preemptirqsoff()
1404 trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_nop() argument
1456 trace_selftest_startup_wakeup(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_wakeup() argument
1458 unsigned long save_max = tr->max_latency; in trace_selftest_startup_wakeup()
1479 ret = tracer_init(trace, tr); in trace_selftest_startup_wakeup()
1486 tr->max_latency = 0; in trace_selftest_startup_wakeup()
1510 ret = trace_test_buffer(&tr->array_buffer, NULL); in trace_selftest_startup_wakeup()
1512 ret = trace_test_buffer(&tr->max_buffer, &count); in trace_selftest_startup_wakeup()
1515 trace->reset(tr); in trace_selftest_startup_wakeup()
1518 tr->max_latency = save_max; in trace_selftest_startup_wakeup()
1534 trace_selftest_startup_branch(struct tracer *trace, struct trace_array *tr) in trace_selftest_startup_branch() argument
1540 ret = tracer_init(trace, tr); in trace_selftest_startup_branch()
1551 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_branch()
1552 trace->reset(tr); in trace_selftest_startup_branch()