Re: [PATCH] new irq tracer

From: Ingo Molnar
Date: Thu Feb 26 2009 - 10:36:35 EST



* Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Thu, 26 Feb 2009, Jason Baron wrote:
> >
> > maybe...although that would require re-arranging the 'while' loop in
> > 'handle_IRQ_event' from a do..while loop to a 'while' loop, which will
> > require an extra branch check, and then we still have to record the last 'ret'
> > value. I'm not that keen on re-arranging this for trace data...
> >
> > Using Steve's new 'DEFINE_TRACE_FMT', I can get function graph trace
> > as follows using the original two tracepoints (patch below):
> >
> > 3) | handle_IRQ_event() {
> > 3) | /* (irq_handler_entry) irq=28 handler=eth0 */
> > 3) | e1000_intr_msi() {
> > 3) 2.460 us | __napi_schedule();
> > 3) 9.416 us | }
> > 3) | /* (irq_handler_exit) irq=28 handler=eth0 return=handled */
> > 3) + 22.935 us | }
> >
> > thanks,
> >
> > -Jason
>
> Looks good, one minor note:

[...]
> > +DEFINE_TRACE_FMT(irq_handler_entry,
>
> I've renamed DEFINE_TRACE_FMT to TRACE_FORMAT. I believe that
> is already in Ingo's tree.
>
> Other than that:
>
> Acked-by: Steven Rostedt <srostedt@xxxxxxxxxx>

i've changed that in the patch and have applied Jason's patch to
tip:tracing/ftrace. Thanks guys!

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/