Lines Matching refs:tlat
1718 struct timerlat_variables *tlat; in timerlat_irq() local
1728 tlat = container_of(timer, struct timerlat_variables, timer); in timerlat_irq()
1730 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_irq()
1735 tlat->tracing_thread = true; in timerlat_irq()
1774 diff = now - tlat->abs_period; in timerlat_irq()
1776 tlat->count++; in timerlat_irq()
1777 s.seqnum = tlat->count; in timerlat_irq()
1801 wake_up_process(tlat->kthread); in timerlat_irq()
1807 wake_up_process(tlat->kthread); in timerlat_irq()
1818 static int wait_next_period(struct timerlat_variables *tlat) in wait_next_period() argument
1823 now = hrtimer_cb_get_time(&tlat->timer); in wait_next_period()
1824 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1829 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1835 next_abs_period = ns_to_ktime(tlat->abs_period + rel_period); in wait_next_period()
1836 tlat->abs_period = (u64) ktime_to_ns(next_abs_period); in wait_next_period()
1841 hrtimer_start(&tlat->timer, next_abs_period, HRTIMER_MODE_ABS_PINNED_HARD); in wait_next_period()
1852 struct timerlat_variables *tlat = this_cpu_tmr_var(); in timerlat_main() local
1876 tlat->count = 0; in timerlat_main()
1877 tlat->tracing_thread = false; in timerlat_main()
1879 hrtimer_setup(&tlat->timer, timerlat_irq, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); in timerlat_main()
1880 tlat->kthread = current; in timerlat_main()
1885 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer); in timerlat_main()
1887 wait_next_period(tlat); in timerlat_main()
1893 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_main()
1894 diff = now - tlat->abs_period; in timerlat_main()
1896 s.seqnum = tlat->count; in timerlat_main()
1906 tlat->tracing_thread = false; in timerlat_main()
1914 wait_next_period(tlat); in timerlat_main()
1917 hrtimer_cancel(&tlat->timer); in timerlat_main()
2374 struct timerlat_variables *tlat; in timerlat_fd_open() local
2429 tlat = this_cpu_tmr_var(); in timerlat_fd_open()
2430 tlat->count = 0; in timerlat_fd_open()
2432 hrtimer_setup(&tlat->timer, timerlat_irq, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD); in timerlat_fd_open()
2453 struct timerlat_variables *tlat; in timerlat_fd_read() local
2460 tlat = this_cpu_tmr_var(); in timerlat_fd_read()
2468 if (tlat->uthread_migrate) { in timerlat_fd_read()
2491 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_fd_read()
2492 diff = now - tlat->abs_period; in timerlat_fd_read()
2500 s.seqnum = tlat->count; in timerlat_fd_read()
2508 tlat->tracing_thread = false; in timerlat_fd_read()
2513 tlat->tracing_thread = false; in timerlat_fd_read()
2514 tlat->kthread = current; in timerlat_fd_read()
2517 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer); in timerlat_fd_read()
2523 wait_next_period(tlat); in timerlat_fd_read()
2526 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer)); in timerlat_fd_read()
2527 diff = now - tlat->abs_period; in timerlat_fd_read()
2535 s.seqnum = tlat->count; in timerlat_fd_read()