• Home
  • Raw
  • Download

Lines Matching refs:tr

56 	struct trace_array	*tr;  member
71 static int osnoise_instance_registered(struct trace_array *tr) in osnoise_instance_registered() argument
78 if (inst->tr == tr) in osnoise_instance_registered()
92 static int osnoise_register_instance(struct trace_array *tr) in osnoise_register_instance() argument
107 inst->tr = tr; in osnoise_register_instance()
119 static void osnoise_unregister_instance(struct trace_array *tr) in osnoise_unregister_instance() argument
130 if (inst->tr == tr) { in osnoise_unregister_instance()
459 buffer = inst->tr->array_buffer.buffer; \
504 buffer = inst->tr->array_buffer.buffer; in trace_osnoise_sample()
578 buffer = inst->tr->array_buffer.buffer; in trace_timerlat_sample()
667 buffer = inst->tr->array_buffer.buffer; in timerlat_dump_stack()
1249 struct trace_array *tr; in osnoise_stop_tracing() local
1253 tr = inst->tr; in osnoise_stop_tracing()
1254 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_, in osnoise_stop_tracing()
1257 tracer_tracing_off(tr); in osnoise_stop_tracing()
1268 struct trace_array *tr; in notify_new_max_latency() local
1272 tr = inst->tr; in notify_new_max_latency()
1273 if (tracer_tracing_is_on(tr) && tr->max_latency < latency) { in notify_new_max_latency()
1274 tr->max_latency = latency; in notify_new_max_latency()
1275 latency_fsnotify(tr); in notify_new_max_latency()
2268 static void osnoise_tracer_start(struct trace_array *tr) in osnoise_tracer_start() argument
2276 if (osnoise_instance_registered(tr)) in osnoise_tracer_start()
2283 osnoise_register_instance(tr); in osnoise_tracer_start()
2286 static void osnoise_tracer_stop(struct trace_array *tr) in osnoise_tracer_stop() argument
2288 osnoise_unregister_instance(tr); in osnoise_tracer_stop()
2292 static int osnoise_tracer_init(struct trace_array *tr) in osnoise_tracer_init() argument
2301 tr->max_latency = 0; in osnoise_tracer_init()
2303 osnoise_tracer_start(tr); in osnoise_tracer_init()
2307 static void osnoise_tracer_reset(struct trace_array *tr) in osnoise_tracer_reset() argument
2309 osnoise_tracer_stop(tr); in osnoise_tracer_reset()
2323 static void timerlat_tracer_start(struct trace_array *tr) in timerlat_tracer_start() argument
2331 if (osnoise_instance_registered(tr)) in timerlat_tracer_start()
2338 osnoise_register_instance(tr); in timerlat_tracer_start()
2343 static void timerlat_tracer_stop(struct trace_array *tr) in timerlat_tracer_stop() argument
2347 osnoise_unregister_instance(tr); in timerlat_tracer_stop()
2360 static int timerlat_tracer_init(struct trace_array *tr) in timerlat_tracer_init() argument
2375 tr->max_latency = 0; in timerlat_tracer_init()
2376 timerlat_tracer_start(tr); in timerlat_tracer_init()
2381 static void timerlat_tracer_reset(struct trace_array *tr) in timerlat_tracer_reset() argument
2383 timerlat_tracer_stop(tr); in timerlat_tracer_reset()