]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/fgraph: Add max_graph_depth to limit function_graph depth
authorSteven Rostedt <srostedt@redhat.com>
Wed, 16 Jan 2013 15:49:37 +0000 (10:49 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 21 Jan 2013 18:22:34 +0000 (13:22 -0500)
commit483c1cdc9332ca7b8656831d6ad6f4f6bab5eb7a
treec2687a6151b869d562e729f58651a32da5436518
parentebf4243d19cbd779299846e67bb1a4acd0d15d7d
tracing/fgraph: Add max_graph_depth to limit function_graph depth

Add the file max_graph_depth to the debug tracing directory that lets
the user define the depth of the function graph.

A very useful operation is to set the depth to 1. Then it traces only
the first function that is called when entering the kernel. This can
be used to determine what system operations interrupt a process.

For example, to work on NOHZ processes (single tasks running without
a timer tick), if any interrupt goes off and preempts that task, this
code will show it happening.

  # cd /sys/kernel/debug/tracing
  # echo 1 > max_graph_depth
  # echo function_graph > current_tracer
  # cat per_cpu/cpu/<cpu-of-process>/trace

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_functions_graph.c