Lines Matching refs:tr
105 struct trace_array *tr = hwlat_trace; in trace_hwlat_sample() local
107 struct ring_buffer *buffer = tr->trace_buffer.buffer; in trace_hwlat_sample()
169 struct trace_array *tr = hwlat_trace; in get_sample() local
257 if (sample > tr->max_latency) in get_sample()
258 tr->max_latency = sample; in get_sample()
349 static int start_kthread(struct trace_array *tr) in start_kthread() argument
558 static void hwlat_tracer_start(struct trace_array *tr) in hwlat_tracer_start() argument
562 err = start_kthread(tr); in hwlat_tracer_start()
567 static void hwlat_tracer_stop(struct trace_array *tr) in hwlat_tracer_stop() argument
574 static int hwlat_tracer_init(struct trace_array *tr) in hwlat_tracer_init() argument
580 hwlat_trace = tr; in hwlat_tracer_init()
584 tr->max_latency = 0; in hwlat_tracer_init()
591 if (tracer_tracing_is_on(tr)) in hwlat_tracer_init()
592 hwlat_tracer_start(tr); in hwlat_tracer_init()
599 static void hwlat_tracer_reset(struct trace_array *tr) in hwlat_tracer_reset() argument