Lines Matching refs:tlat

1515 	struct timerlat_variables *tlat;  in timerlat_irq()  local
1525 tlat = container_of(timer, struct timerlat_variables, timer); in timerlat_irq()
1527 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_irq()
1532 tlat->tracing_thread = true; in timerlat_irq()
1571 diff = now - tlat->abs_period; in timerlat_irq()
1573 tlat->count++; in timerlat_irq()
1574 s.seqnum = tlat->count; in timerlat_irq()
1602 wake_up_process(tlat->kthread); in timerlat_irq()
1613 static int wait_next_period(struct timerlat_variables *tlat) in wait_next_period() argument
1618 now = hrtimer_cb_get_time(&tlat->timer); in wait_next_period()
1619 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1624 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1630 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1631 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1636 hrtimer_start(&tlat->timer, next_abs_period, HRTIMER_MODE_ABS_PINNED_HARD); in wait_next_period()
1647 struct timerlat_variables *tlat = this_cpu_tmr_var(); in timerlat_main() local
1658 tlat->count = 0; in timerlat_main()
1659 tlat->tracing_thread = false; in timerlat_main()
1661 hrtimer_init(&tlat->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); in timerlat_main()
1662 tlat->timer.function = timerlat_irq; in timerlat_main()
1663 tlat->kthread = current; in timerlat_main()
1668 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer); in timerlat_main()
1670 wait_next_period(tlat); in timerlat_main()
1675 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_main()
1676 diff = now - tlat->abs_period; in timerlat_main()
1678 s.seqnum = tlat->count; in timerlat_main()
1686 tlat->tracing_thread = false; in timerlat_main()
1691 wait_next_period(tlat); in timerlat_main()
1694 hrtimer_cancel(&tlat->timer); in timerlat_main()