• jolsa@redhat.com's avatar
    tracing: Support multiple pids in set_pid_ftrace file · 756d17ee
    jolsa@redhat.com authored
    Adding the possibility to set more than 1 pid in the set_pid_ftrace
    file, thus allowing to trace more than 1 independent processes.
    
    Usage:
    
     sh-4.0# echo 284 > ./set_ftrace_pid
     sh-4.0# cat ./set_ftrace_pid
     284
     sh-4.0# echo 1 >> ./set_ftrace_pid
     sh-4.0# echo 0 >> ./set_ftrace_pid
     sh-4.0# cat ./set_ftrace_pid
     swapper tasks
     1
     284
     sh-4.0# echo 4 > ./set_ftrace_pid
     sh-4.0# cat ./set_ftrace_pid
     4
     sh-4.0# echo > ./set_ftrace_pid
     sh-4.0# cat ./set_ftrace_pid
     no pid
     sh-4.0#
    Signed-off-by: default avatarJiri Olsa <jolsa@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    LKML-Reference: <20091013203425.565454612@goodmis.org>
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    756d17ee
trace.h 21.7 KB