Lines Matching refs:timer
4 * Timerlat Tracer: measures the wakeup latency of a timer triggered IRQ and thread.
233 * Runtime information for the timer mode.
237 struct hrtimer timer;
330 int context; /* timer context */
1727 static enum hrtimer_restart timerlat_irq(struct hrtimer *timer)
1736 * I am not sure if the timer was armed for this CPU. So, get
1737 * the timerlat struct from the timer itself, not from this
1740 tlat = container_of(timer, struct timerlat_variables, timer);
1742 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer));
1752 * A hardirq is running: the timer IRQ. It is for sure preempting
1757 * delay the beginning of the execution of the timer thread.
1835 now = hrtimer_cb_get_time(&tlat->timer);
1853 hrtimer_start(&tlat->timer, next_abs_period, HRTIMER_MODE_ABS_PINNED_HARD);
1891 hrtimer_init(&tlat->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD);
1892 tlat->timer.function = timerlat_irq;
1898 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer);
1906 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer));
1930 hrtimer_cancel(&tlat->timer);
2447 hrtimer_init(&tlat->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD);
2448 tlat->timer.function = timerlat_irq;
2507 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer));
2511 * it was not a timer firing, but some other signal?
2533 tlat->abs_period = hrtimer_cb_get_time(&tlat->timer);
2542 now = ktime_to_ns(hrtimer_cb_get_time(&tlat->timer));
2546 * it was not a timer firing, but some other signal?
2582 hrtimer_cancel(&tlat_var->timer);