Lines Matching refs:kdata
165 struct hwlat_kthread_data *kdata = get_cpu_data(); in trace_hwlat_callback() local
167 if (!kdata->kthread) in trace_hwlat_callback()
176 kdata->nmi_ts_start = time_get(); in trace_hwlat_callback()
178 kdata->nmi_total_ts += time_get() - kdata->nmi_ts_start; in trace_hwlat_callback()
182 kdata->nmi_count++; in trace_hwlat_callback()
203 struct hwlat_kthread_data *kdata = get_cpu_data(); in get_sample() local
216 kdata->nmi_total_ts = 0; in get_sample()
217 kdata->nmi_count = 0; in get_sample()
287 if (kdata->nmi_total_ts) in get_sample()
288 do_div(kdata->nmi_total_ts, NSEC_PER_USEC); in get_sample()
294 s.nmi_total_ts = kdata->nmi_total_ts; in get_sample()
295 s.nmi_count = kdata->nmi_count; in get_sample()
398 struct hwlat_kthread_data *kdata = get_cpu_data(); in stop_single_kthread() local
402 kthread = kdata->kthread; in stop_single_kthread()
408 kdata->kthread = NULL; in stop_single_kthread()
423 struct hwlat_kthread_data *kdata = get_cpu_data(); in start_single_kthread() local
429 if (kdata->kthread) in start_single_kthread()
451 kdata->kthread = kthread; in start_single_kthread()