Lines Matching defs:tr
78 struct trace_array *tr;
91 * osnoise_instance_registered - check if a tr is already registered
93 static int osnoise_instance_registered(struct trace_array *tr)
100 if (inst->tr == tr)
111 * Register a trace_array *tr in the list of instances running
114 static int osnoise_register_instance(struct trace_array *tr)
129 inst->tr = tr;
138 * Remove the trace_array *tr from the list of instances running
141 static void osnoise_unregister_instance(struct trace_array *tr)
152 if (inst->tr == tr) {
489 buffer = inst->tr->array_buffer.buffer; \
534 buffer = inst->tr->array_buffer.buffer;
608 buffer = inst->tr->array_buffer.buffer;
697 buffer = inst->tr->array_buffer.buffer;
1199 struct trace_array *tr;
1203 tr = inst->tr;
1204 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_,
1214 tracer_tracing_off(tr);
1361 struct trace_array *tr;
1365 tr = inst->tr;
1366 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_,
1372 tracer_tracing_off(tr);
1387 trace_is_on += tracer_tracing_is_on(inst->tr);
1399 struct trace_array *tr;
1403 tr = inst->tr;
1404 if (tracer_tracing_is_on(tr) && tr->max_latency < latency) {
1405 tr->max_latency = latency;
1406 latency_fsnotify(tr);
2981 static void osnoise_tracer_start(struct trace_array *tr)
2989 if (osnoise_instance_registered(tr))
2996 osnoise_register_instance(tr);
2999 static void osnoise_tracer_stop(struct trace_array *tr)
3001 osnoise_unregister_instance(tr);
3005 static int osnoise_tracer_init(struct trace_array *tr)
3014 tr->max_latency = 0;
3016 osnoise_tracer_start(tr);
3020 static void osnoise_tracer_reset(struct trace_array *tr)
3022 osnoise_tracer_stop(tr);
3036 static void timerlat_tracer_start(struct trace_array *tr)
3044 if (osnoise_instance_registered(tr))
3051 osnoise_register_instance(tr);
3056 static void timerlat_tracer_stop(struct trace_array *tr)
3060 osnoise_unregister_instance(tr);
3073 static int timerlat_tracer_init(struct trace_array *tr)
3088 tr->max_latency = 0;
3089 timerlat_tracer_start(tr);
3094 static void timerlat_tracer_reset(struct trace_array *tr)
3096 timerlat_tracer_stop(tr);