Lines Matching refs:tlat
1297 struct timerlat_variables *tlat; in timerlat_irq() local
1307 tlat = container_of(timer, struct timerlat_variables, timer); in timerlat_irq()
1309 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_irq()
1314 tlat->tracing_thread = true; in timerlat_irq()
1358 diff = now - tlat->abs_period; in timerlat_irq()
1360 tlat->count++; in timerlat_irq()
1361 s.seqnum = tlat->count; in timerlat_irq()
1377 wake_up_process(tlat->kthread); in timerlat_irq()
1388 static int wait_next_period(struct timerlat_variables *tlat) in wait_next_period() argument
1393 now = hrtimer_cb_get_time(&tlat->timer); in wait_next_period()
1394 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1399 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1405 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1406 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1411 hrtimer_start(&tlat->timer, next_abs_period, HRTIMER_MODE_ABS_PINNED_HARD); in wait_next_period()
1422 struct timerlat_variables *tlat = this_cpu_tmr_var(); in timerlat_main() local
1433 tlat->count = 0; in timerlat_main()
1434 tlat->tracing_thread = false; in timerlat_main()
1436 hrtimer_init(&tlat->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); in timerlat_main()
1437 tlat->timer.function = timerlat_irq; in timerlat_main()
1438 tlat->kthread = current; in timerlat_main()
1443 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer); in timerlat_main()
1445 wait_next_period(tlat); in timerlat_main()
1450 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_main()
1451 diff = now - tlat->abs_period; in timerlat_main()
1453 s.seqnum = tlat->count; in timerlat_main()
1465 tlat->tracing_thread = false; in timerlat_main()
1470 wait_next_period(tlat); in timerlat_main()
1473 hrtimer_cancel(&tlat->timer); in timerlat_main()