Re: [PATCH][GIT PULL] ftrace: Add function names to dangling } infunction graph tracer

From: Frederic Weisbecker
Date: Sat Feb 27 2010 - 05:04:26 EST


On Sat, Feb 27, 2010 at 10:43:01AM +0100, Ingo Molnar wrote:
> > [tracing] cat trace
> > # tracer: function_graph
> > #
> > # CPU DURATION FUNCTION CALLS
> > # | | | | | | |
> > 0) + 91.897 us | } (irq_exit)
> > 0) ! 567.961 us | } (smp_apic_timer_interrupt)
> > 0) <========== |
> > 0) ! 579.083 us | _raw_spin_lock_irqsave();
> > 0) 4.694 us | _raw_spin_unlock_irqrestore();
> > 0) ! 594.862 us | } (add_wait_queue)
> > 0) ! 603.361 us | } (__pollwait)
> > 0) ! 613.574 us | } (tcp_poll)
> > 0) ! 623.554 us | } (sock_poll)
> > 0) 3.653 us | fget_light();
> > 0) | sock_poll() {
>
> Neat! I think it would read even more C-ish if it was something non-syntactic,
> like:
>
> > 0) ! 594.862 us | } /* add_wait_queue */
> > 0) ! 603.361 us | } /* __pollwait */
> > 0) ! 613.574 us | } /* tcp_poll */
> > 0) ! 623.554 us | } /* sock_poll */
>
> hm?



Agreed. It won't even be confusing with other events that are
printed as comments, since we have the closing brace before.



>
> 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/