aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/trace/ftrace.txt')
-rw-r--r--Documentation/trace/ftrace.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt
index 6f51fed45f2..a5c45d7b0b9 100644
--- a/Documentation/trace/ftrace.txt
+++ b/Documentation/trace/ftrace.txt
@@ -1458,6 +1458,35 @@ will produce:
1458 1) 1.449 us | } 1458 1) 1.449 us | }
1459 1459
1460 1460
1461You can disable the hierarchical function call formatting and instead print a
1462flat list of function entry and return events. This uses the format described
1463in the Output Formatting section and respects all the trace options that
1464control that formatting. Hierarchical formatting is the default.
1465
1466 hierachical: echo nofuncgraph-flat > trace_options
1467 flat: echo funcgraph-flat > trace_options
1468
1469 ie:
1470
1471 # tracer: function_graph
1472 #
1473 # entries-in-buffer/entries-written: 68355/68355 #P:2
1474 #
1475 # _-----=> irqs-off
1476 # / _----=> need-resched
1477 # | / _---=> hardirq/softirq
1478 # || / _--=> preempt-depth
1479 # ||| / delay
1480 # TASK-PID CPU# |||| TIMESTAMP FUNCTION
1481 # | | | |||| | |
1482 sh-1806 [001] d... 198.843443: graph_ent: func=_raw_spin_lock
1483 sh-1806 [001] d... 198.843445: graph_ent: func=__raw_spin_lock
1484 sh-1806 [001] d..1 198.843447: graph_ret: func=__raw_spin_lock
1485 sh-1806 [001] d..1 198.843449: graph_ret: func=_raw_spin_lock
1486 sh-1806 [001] d..1 198.843451: graph_ent: func=_raw_spin_unlock_irqrestore
1487 sh-1806 [001] d... 198.843453: graph_ret: func=_raw_spin_unlock_irqrestore
1488
1489
1461You might find other useful features for this tracer in the 1490You might find other useful features for this tracer in the
1462following "dynamic ftrace" section such as tracing only specific 1491following "dynamic ftrace" section such as tracing only specific
1463functions or tasks. 1492functions or tasks.