• S
    ftrace: add function tracing to single thread · df4fc315
    Steven Rostedt 提交于
    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: NSteven Rostedt <srostedt@redhat.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    df4fc315
ftrace.c 37.7 KB