]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Have stack_tracer use a separate list of functions
authorSteven Rostedt <srostedt@redhat.com>
Mon, 19 Dec 2011 19:44:09 +0000 (14:44 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 21 Dec 2011 12:25:57 +0000 (07:25 -0500)
commitf0b7c92e8725a3c7bcab78ed8a3c59c90d99dbbc
tree3a4e1d9b928bc213b05eb3d4a93d46d2205a11a9
parentb461f90ff09dd12b1fe46f3f45ea1bbcab81e49b
tracing: Have stack_tracer use a separate list of functions

The stack_tracer is used to look at every function and check
if the current stack is bigger than the last recorded max stack size.
When a new max is found, then it saves that stack off.

Currently the stack tracer is limited by the global_ops of
the function tracer. As the stack tracer has nothing to do with
the ftrace function tracer, except that it uses it as its internal
engine, the stack tracer should have its own list.

A new file is added to the tracing debugfs directory called:

  stack_trace_filter

that can be used to select which functions you want to check the stack
on.

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