Lines Matching refs:tr
106 struct trace_array *tr = hwlat_trace; in trace_hwlat_sample() local
108 struct trace_buffer *buffer = tr->array_buffer.buffer; in trace_hwlat_sample()
171 struct trace_array *tr = hwlat_trace; in get_sample() local
270 if (latency > tr->max_latency) { in get_sample()
271 tr->max_latency = latency; in get_sample()
272 latency_fsnotify(tr); in get_sample()
286 struct trace_array *tr = hwlat_trace; in move_to_next_cpu() local
300 cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask); in move_to_next_cpu()
365 static int start_kthread(struct trace_array *tr) in start_kthread() argument
376 cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask); in start_kthread()
573 static void hwlat_tracer_start(struct trace_array *tr) in hwlat_tracer_start() argument
577 err = start_kthread(tr); in hwlat_tracer_start()
582 static void hwlat_tracer_stop(struct trace_array *tr) in hwlat_tracer_stop() argument
589 static int hwlat_tracer_init(struct trace_array *tr) in hwlat_tracer_init() argument
595 hwlat_trace = tr; in hwlat_tracer_init()
599 tr->max_latency = 0; in hwlat_tracer_init()
606 if (tracer_tracing_is_on(tr)) in hwlat_tracer_init()
607 hwlat_tracer_start(tr); in hwlat_tracer_init()
614 static void hwlat_tracer_reset(struct trace_array *tr) in hwlat_tracer_reset() argument