]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b41cda0b349f127bdfc6ec97ca9c2c44ba6f873
tree4432c60f73d14af510ab13b9b474e174fd2454c5
parent14c36e54885ec7cf327291c1b59e3989e41ad86b
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