コード例 #1
0
ファイル: trace_sysprof.c プロジェクト: snake1361222/LVS
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;
}
コード例 #2
0
ファイル: main.c プロジェクト: jezze/fudge
static void handleirq(unsigned int irq)
{

    jiffies++;

    if (jiffies >= 60)
    {

        timer_notify(&timerinterface, &jiffies, 4);
        timer_notifytick(&timerinterface, jiffies);

        jiffies = 0;

    }

}