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)
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>

No differences found