Lines Matching refs:tlat

1743 	struct timerlat_variables *tlat;  in timerlat_irq()  local
1753 tlat = container_of(timer, struct timerlat_variables, timer); in timerlat_irq()
1755 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_irq()
1760 tlat->tracing_thread = true; in timerlat_irq()
1799 diff = now - tlat->abs_period; in timerlat_irq()
1801 tlat->count++; in timerlat_irq()
1802 s.seqnum = tlat->count; in timerlat_irq()
1826 wake_up_process(tlat->kthread); in timerlat_irq()
1832 wake_up_process(tlat->kthread); in timerlat_irq()
1843 static int wait_next_period(struct timerlat_variables *tlat) in wait_next_period() argument
1848 now = hrtimer_cb_get_time(&tlat->timer); in wait_next_period()
1849 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1854 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1860 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1861 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1866 hrtimer_start(&tlat->timer, next_abs_period, HRTIMER_MODE_ABS_PINNED_HARD); in wait_next_period()
1877 struct timerlat_variables *tlat = this_cpu_tmr_var(); in timerlat_main() local
1901 tlat->count = 0; in timerlat_main()
1902 tlat->tracing_thread = false; in timerlat_main()
1904 hrtimer_init(&tlat->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); in timerlat_main()
1905 tlat->timer.function = timerlat_irq; in timerlat_main()
1906 tlat->kthread = current; in timerlat_main()
1911 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer); in timerlat_main()
1913 wait_next_period(tlat); in timerlat_main()
1919 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_main()
1920 diff = now - tlat->abs_period; in timerlat_main()
1922 s.seqnum = tlat->count; in timerlat_main()
1932 tlat->tracing_thread = false; in timerlat_main()
1940 wait_next_period(tlat); in timerlat_main()
1943 hrtimer_cancel(&tlat->timer); in timerlat_main()
2401 struct timerlat_variables *tlat; in timerlat_fd_open() local
2456 tlat = this_cpu_tmr_var(); in timerlat_fd_open()
2457 tlat->count = 0; in timerlat_fd_open()
2459 hrtimer_init(&tlat->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); in timerlat_fd_open()
2460 tlat->timer.function = timerlat_irq; in timerlat_fd_open()
2481 struct timerlat_variables *tlat; in timerlat_fd_read() local
2488 tlat = this_cpu_tmr_var(); in timerlat_fd_read()
2496 if (tlat->uthread_migrate) { in timerlat_fd_read()
2519 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_fd_read()
2520 diff = now - tlat->abs_period; in timerlat_fd_read()
2528 s.seqnum = tlat->count; in timerlat_fd_read()
2536 tlat->tracing_thread = false; in timerlat_fd_read()
2541 tlat->tracing_thread = false; in timerlat_fd_read()
2542 tlat->kthread = current; in timerlat_fd_read()
2545 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer); in timerlat_fd_read()
2551 wait_next_period(tlat); in timerlat_fd_read()
2554 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_fd_read()
2555 diff = now - tlat->abs_period; in timerlat_fd_read()
2563 s.seqnum = tlat->count; in timerlat_fd_read()