ftrace: add function tracing to single thread
authorSteven Rostedt <srostedt@redhat.com>
Wed, 26 Nov 2008 05:16:23 +0000 (00:16 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 05:52:52 +0000 (06:52 +0100)
commitdf4fc31558dd2a3a30292ddb3a64c2a5befcec73
treee7e57093541568a039175aa846fe135f6ba575e2
parentc2324b694fa8ffee382a124198c68754088e483c
ftrace: add function tracing to single thread

Impact: feature to function trace a single thread

This patch adds the ability to function trace a single thread.
The file:

  /debugfs/tracing/set_ftrace_pid

contains the pid to trace. Valid pids are any positive integer.
Writing any negative number to this file will disable the pid
tracing and the function tracer will go back to tracing all of
threads.

This feature works with both static and dynamic function tracing.

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