]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tracing: add latency format to function_graph tracer
authorSteven Rostedt <srostedt@redhat.com>
Fri, 11 Sep 2009 04:30:26 +0000 (00:30 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 11 Sep 2009 14:59:49 +0000 (10:59 -0400)
commit49ff590390a22c49e9063dcdec4cd5903127526b
treef30913673a9d89d2f67cdafeed03afe127511713
parentfc06b8520b3bf9aaeb2e27debe6719c215bd4916
tracing: add latency format to function_graph tracer

While debugging something with the function_graph tracer, I found the
need to see the preempt count of the traces. Unfortunately, since
the function graph tracer has its own output formatting, it does not
honor the latency-format option.

This patch makes the function_graph tracer honor the latency-format
option, but still keeps control of the output. But now we have the
same details that the latency-format supplies.

 # tracer: function_graph
 #
 #      _-----=> irqs-off
 #     / _----=> need-resched
 #    | / _---=> hardirq/softirq
 #    || / _--=> preempt-depth
 #    ||| /
 #    ||||
 # CPU||||  DURATION                  FUNCTION CALLS
 # |  ||||   |   |                     |   |   |   |
  3)  d..1  1.333 us    |        idle_cpu();
  3)  d.h1              |        tick_check_idle() {
  3)  d.h1  0.550 us    |          tick_check_oneshot_broadcast();
  3)  d.h1              |          tick_nohz_stop_idle() {
  3)  d.h1              |            ktime_get() {
  3)  d.h1              |              ktime_get_ts() {

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_functions_graph.c