tracing/function-graph-tracer: display unified style cmdline and pid
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 3 Dec 2008 01:30:37 +0000 (02:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 3 Dec 2008 08:09:41 +0000 (09:09 +0100)
commit11e84acc400921743cc8d488e4a265cd98a655c7
tree3f252d74a4d474eef1db73c7c6c947159aec3aee
parent62679efe0a5f02987a621942afc5979a80a6ca5a
tracing/function-graph-tracer: display unified style cmdline and pid

Impact: extend function-graph output: let one know which thread called a function

This patch implements a helper function to print the couple cmdline/pid.
Its output is provided during task switching and on each row if the new
"funcgraph-proc" defualt-off option is set through trace_options file.

The output is center aligned and never exceeds 14 characters. The cmdline
is truncated over 7 chars.
But note that if the pid exceeds 6 characters, the column will overflow (but
the situation is abnormal).

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_functions_graph.c