• Steven Rostedt's avatar
    ftrace: add function tracing to single thread · df4fc315
    Steven Rostedt authored
    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: default avatarSteven Rostedt <srostedt@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    df4fc315
ftrace.c 37.7 KB