Re: [patch 2/9] LTTng instrumentation - irq

From: Ingo Molnar
Date: Wed Mar 25 2009 - 04:48:39 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

>
> * Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx> wrote:
>
> > If we want to do this logically, without thinking about tracer
> > performance impact, we could/should do :
> >
> > trace_irq_entry(irqno, pt_regs)
> > for_each_handler() {
> > trace_irq_handler_entry(action)
> > action->handler()
> > trace_irq_handler_exit(ret)
> > }
> > trace_irq_exit(retval)
>
> Not really.

Put differently: we seem to agree on handler invocation entry/exit
events (and those are handled by Jason's patch already), and that's
good.

I dont think we need two events for physical IRQ events though. One
is enough: entry event. What meaning does 'retval' have in your
pseudo-code above? None typically.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/