]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: trace single pid for function graph tracer
authorSteven Rostedt <srostedt@redhat.com>
Wed, 3 Dec 2008 20:36:59 +0000 (15:36 -0500)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Dec 2008 08:09:36 +0000 (09:09 +0100)
commit8325b187c749895dadaafe3d3228c592bce476c1
treef7b79000146532c0ad6571440652368e2521119a
parent4c21599791bc4709368d428fd44f4c2e4369e9b6
ftrace: trace single pid for function graph tracer

Impact: New feature

This patch makes the changes to set_ftrace_pid apply to the function
graph tracer.

  # echo $$ > /debugfs/tracing/set_ftrace_pid
  # echo function_graph > /debugfs/tracing/current_tracer

Will cause only the current task to be traced. Note, the trace flags are
also inherited by child processes, so the children of the shell
will also be traced.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ftrace.c
kernel/trace/trace.c
kernel/trace/trace.h