Lines Matching refs:tlat
1730 struct timerlat_variables *tlat; in timerlat_irq() local
1740 tlat = container_of(timer, struct timerlat_variables, timer); in timerlat_irq()
1742 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_irq()
1747 tlat->tracing_thread = true; in timerlat_irq()
1786 diff = now - tlat->abs_period; in timerlat_irq()
1788 tlat->count++; in timerlat_irq()
1789 s.seqnum = tlat->count; in timerlat_irq()
1813 wake_up_process(tlat->kthread); in timerlat_irq()
1819 wake_up_process(tlat->kthread); in timerlat_irq()
1830 static int wait_next_period(struct timerlat_variables *tlat) in wait_next_period() argument
1835 now = hrtimer_cb_get_time(&tlat->timer); in wait_next_period()
1836 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1841 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1847 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1848 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1853 hrtimer_start(&tlat->timer, next_abs_period, HRTIMER_MODE_ABS_PINNED_HARD); in wait_next_period()
1864 struct timerlat_variables *tlat = this_cpu_tmr_var(); in timerlat_main() local
1888 tlat->count = 0; in timerlat_main()
1889 tlat->tracing_thread = false; in timerlat_main()
1891 hrtimer_init(&tlat->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); in timerlat_main()
1892 tlat->timer.function = timerlat_irq; in timerlat_main()
1893 tlat->kthread = current; in timerlat_main()
1898 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer); in timerlat_main()
1900 wait_next_period(tlat); in timerlat_main()
1906 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_main()
1907 diff = now - tlat->abs_period; in timerlat_main()
1909 s.seqnum = tlat->count; in timerlat_main()
1919 tlat->tracing_thread = false; in timerlat_main()
1927 wait_next_period(tlat); in timerlat_main()
1930 hrtimer_cancel(&tlat->timer); in timerlat_main()
2389 struct timerlat_variables *tlat; in timerlat_fd_open() local
2444 tlat = this_cpu_tmr_var(); in timerlat_fd_open()
2445 tlat->count = 0; in timerlat_fd_open()
2466 struct timerlat_variables *tlat; in timerlat_fd_read() local
2473 tlat = this_cpu_tmr_var(); in timerlat_fd_read()
2481 if (tlat->uthread_migrate) { in timerlat_fd_read()
2504 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_fd_read()
2505 diff = now - tlat->abs_period; in timerlat_fd_read()
2513 s.seqnum = tlat->count; in timerlat_fd_read()
2521 tlat->tracing_thread = false; in timerlat_fd_read()
2526 tlat->tracing_thread = false; in timerlat_fd_read()
2527 tlat->kthread = current; in timerlat_fd_read()
2529 hrtimer_init(&tlat->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); in timerlat_fd_read()
2530 tlat->timer.function = timerlat_irq; in timerlat_fd_read()
2533 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer); in timerlat_fd_read()
2539 wait_next_period(tlat); in timerlat_fd_read()
2542 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_fd_read()
2543 diff = now - tlat->abs_period; in timerlat_fd_read()
2551 s.seqnum = tlat->count; in timerlat_fd_read()