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()
259 if (outer_sample > tr->max_latency) in get_sample()
260 tr->max_latency = outer_sample; in get_sample()
351 static int start_kthread(struct trace_array *tr) in start_kthread() argument
560 static void hwlat_tracer_start(struct trace_array *tr) in hwlat_tracer_start() argument
564 err = start_kthread(tr); in hwlat_tracer_start()
569 static void hwlat_tracer_stop(struct trace_array *tr) in hwlat_tracer_stop() argument
576 static int hwlat_tracer_init(struct trace_array *tr) in hwlat_tracer_init() argument
582 hwlat_trace = tr; in hwlat_tracer_init()
586 tr->max_latency = 0; in hwlat_tracer_init()
593 if (tracer_tracing_is_on(tr)) in hwlat_tracer_init()
594 hwlat_tracer_start(tr); in hwlat_tracer_init()
601 static void hwlat_tracer_reset(struct trace_array *tr) in hwlat_tracer_reset() argument