static enum hrtimer_restart stack_trace_timer_fn(struct hrtimer *hrtimer) { /* trace here */ timer_notify(get_irq_regs(), smp_processor_id()); hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); return HRTIMER_RESTART; }
static void handleirq(unsigned int irq) { jiffies++; if (jiffies >= 60) { timer_notify(&timerinterface, &jiffies, 4); timer_notifytick(&timerinterface, jiffies); jiffies = 0; } }