Lines Matching refs:tr

132 	struct trace_array *tr = hwlat_trace;  in trace_hwlat_sample()  local
134 struct trace_buffer *buffer = tr->array_buffer.buffer; in trace_hwlat_sample()
189 struct trace_array *tr = hwlat_trace; \
191 trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_, msg); \
204 struct trace_array *tr = hwlat_trace; in get_sample() local
302 if (latency > tr->max_latency) { in get_sample()
303 tr->max_latency = latency; in get_sample()
304 latency_fsnotify(tr); in get_sample()
317 struct trace_array *tr = hwlat_trace; in move_to_next_cpu() local
329 cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask); in move_to_next_cpu()
421 static int start_single_kthread(struct trace_array *tr) in start_single_kthread() argument
440 cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask); in start_single_kthread()
509 struct trace_array *tr = hwlat_trace; in hwlat_hotplug_workfn() local
519 if (!cpumask_test_cpu(cpu, tr->tracing_cpumask)) in hwlat_hotplug_workfn()
575 static int start_per_cpu_kthreads(struct trace_array *tr) in start_per_cpu_kthreads() argument
585 cpumask_and(current_mask, cpu_online_mask, tr->tracing_cpumask); in start_per_cpu_kthreads()
661 static void hwlat_tracer_start(struct trace_array *tr);
662 static void hwlat_tracer_stop(struct trace_array *tr);
682 struct trace_array *tr = hwlat_trace; in hwlat_mode_write() local
705 hwlat_tracer_stop(tr); in hwlat_mode_write()
719 hwlat_tracer_start(tr); in hwlat_mode_write()
809 static void hwlat_tracer_start(struct trace_array *tr) in hwlat_tracer_start() argument
814 err = start_per_cpu_kthreads(tr); in hwlat_tracer_start()
816 err = start_single_kthread(tr); in hwlat_tracer_start()
821 static void hwlat_tracer_stop(struct trace_array *tr) in hwlat_tracer_stop() argument
829 static int hwlat_tracer_init(struct trace_array *tr) in hwlat_tracer_init() argument
835 hwlat_trace = tr; in hwlat_tracer_init()
838 tr->max_latency = 0; in hwlat_tracer_init()
845 if (tracer_tracing_is_on(tr)) in hwlat_tracer_init()
846 hwlat_tracer_start(tr); in hwlat_tracer_init()
853 static void hwlat_tracer_reset(struct trace_array *tr) in hwlat_tracer_reset() argument
855 hwlat_tracer_stop(tr); in hwlat_tracer_reset()