]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
function-graph: show binary events as comments
authorSteven Rostedt <srostedt@redhat.com>
Thu, 19 Mar 2009 19:14:46 +0000 (15:14 -0400)
committerSteven Rostedt <srostedt@redhat.com>
Thu, 19 Mar 2009 19:58:56 +0000 (15:58 -0400)
commit5087f8d2a2f2daff5a913d72d8ea3ad601948e10
tree94eea3fdf8aabf361b8bcb9dac99395796aa78c6
parent40ce74f19c28077550646c76d96a075bf312e461
function-graph: show binary events as comments

With the added TRACE_EVENT macro, the events no longer appear in
the function graph tracer. This was because the function graph
did not know how to display the entries. The graph tracer was
only aware of its own entries and the printk entries.

By using the event call back feature, the graph tracer can now display
the events.

 # echo irq > /debug/tracing/set_event

Which can show:

 0)               |          handle_IRQ_event() {
 0)               |            /* irq_handler_entry: irq=48 handler=eth0 */
 0)               |            e1000_intr() {
 0)   0.926 us    |              __napi_schedule();
 0)   3.888 us    |            }
 0)               |            /* irq_handler_exit: irq=48 return=handled */
 0)   0.655 us    |            runqueue_is_locked();
 0)               |            __wake_up() {
 0)   0.831 us    |              _spin_lock_irqsave();

The irq entry and exit events show up as comments.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/trace_functions_graph.c