• Home
  • Raw
  • Download

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()
1598 wake_up_process(tlat->kthread); in timerlat_irq()
1604 wake_up_process(tlat->kthread); in timerlat_irq()
1615 static int wait_next_period(struct timerlat_variables *tlat) in wait_next_period() argument
1620 now = hrtimer_cb_get_time(&tlat->timer); in wait_next_period()
1621 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1626 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1632 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1633 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1638 hrtimer_start(&tlat->timer, next_abs_period, HRTIMER_MODE_ABS_PINNED_HARD); in wait_next_period()
1649 struct timerlat_variables *tlat = this_cpu_tmr_var(); in timerlat_main() local
1660 tlat->count = 0; in timerlat_main()
1661 tlat->tracing_thread = false; in timerlat_main()
1663 hrtimer_init(&tlat->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); in timerlat_main()
1664 tlat->timer.function = timerlat_irq; in timerlat_main()
1665 tlat->kthread = current; in timerlat_main()
1670 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer); in timerlat_main()
1672 wait_next_period(tlat); in timerlat_main()
1677 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_main()
1678 diff = now - tlat->abs_period; in timerlat_main()
1680 s.seqnum = tlat->count; in timerlat_main()
1690 tlat->tracing_thread = false; in timerlat_main()
1695 wait_next_period(tlat); in timerlat_main()
1698 hrtimer_cancel(&tlat->timer); in timerlat_main()