Lines Matching refs:hwlat_data
103 static struct hwlat_data { struct
114 } hwlat_data = { argument
122 if (hwlat_data.thread_mode == MODE_PER_CPU) in get_cpu_data()
272 } while (total <= hwlat_data.sample_width); in get_sample()
290 hwlat_data.count++; in get_sample()
291 s.seqnum = hwlat_data.count; in get_sample()
346 hwlat_data.thread_mode = MODE_NONE; in move_to_next_cpu()
366 if (hwlat_data.thread_mode == MODE_ROUND_ROBIN) in kthread_fn()
373 mutex_lock(&hwlat_data.lock); in kthread_fn()
374 interval = hwlat_data.sample_window - hwlat_data.sample_width; in kthread_fn()
375 mutex_unlock(&hwlat_data.lock); in kthread_fn()
442 if (hwlat_data.thread_mode == MODE_ROUND_ROBIN) { in start_single_kthread()
517 mutex_lock(&hwlat_data.lock); in hwlat_hotplug_workfn()
520 if (!hwlat_busy || hwlat_data.thread_mode != MODE_PER_CPU) in hwlat_hotplug_workfn()
532 mutex_unlock(&hwlat_data.lock); in hwlat_hotplug_workfn()
612 mutex_lock(&hwlat_data.lock); in s_mode_start()
635 if (mode == hwlat_data.thread_mode) in s_mode_show()
649 mutex_unlock(&hwlat_data.lock); in s_mode_stop()
710 mutex_lock(&hwlat_data.lock); in hwlat_mode_write()
714 hwlat_data.thread_mode = i; in hwlat_mode_write()
719 mutex_unlock(&hwlat_data.lock); in hwlat_mode_write()
738 .lock = &hwlat_data.lock,
739 .val = &hwlat_data.sample_width,
740 .max = &hwlat_data.sample_window,
750 .lock = &hwlat_data.lock,
751 .val = &hwlat_data.sample_window,
753 .min = &hwlat_data.sample_width,
816 if (hwlat_data.thread_mode == MODE_PER_CPU) in hwlat_tracer_start()
826 if (hwlat_data.thread_mode == MODE_PER_CPU) in hwlat_tracer_stop()
840 hwlat_data.count = 0; in hwlat_tracer_init()
881 mutex_init(&hwlat_data.lock); in init_hwlat_tracer()