tracing: add saved_cmdlines file to show cached task comms
authorAvadh Patel <avadh4all@gmail.com>
Fri, 10 Apr 2009 20:04:48 +0000 (16:04 -0400)
committerIngo Molnar <mingo@elte.hu>
Fri, 17 Apr 2009 15:04:12 +0000 (17:04 +0200)
commit69abe6a5d18a9394baa325bab8f57748b037c517
tree4432c60f73d14af510ab13b9b474e174fd2454c5
parentd1b182a8d49ed6416325b4e0a1cb0f17cd4e702a
tracing: add saved_cmdlines file to show cached task comms

Export the cached task comms to userspace. This allows user apps to translate
the pids from a trace into their respective task command lines.

[ Impact: let userspace apps reading binary buffer know comm's of pids ]

Signed-off-by: Avadh Patel <avadh4all@gmail.com>
[ added error checking and use of buf pointer to index file_buf ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c