tracing: Move pid_list write processing into its own function
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 21 Apr 2016 15:35:30 +0000 (11:35 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 20 Jun 2016 13:54:18 +0000 (09:54 -0400)
commit76c813e26606d35ea9d8d6f96e646b3944c730a9
treee69cf6a6f21e4c9d9582a9cd9fb278c820057a13
parent5cc8976bd52153678ca37cc1e3000833b20276f3
tracing: Move pid_list write processing into its own function

The addition of PIDs into a pid_list via the write operation of
set_event_pid is a bit complex. The same operation will be needed for
function tracing pids. Move the code into its own generic function in
trace.c, so that we can avoid duplication of this code.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events.c