From: Frederic Weisbecker Date: Wed, 3 Dec 2008 01:30:37 +0000 (+0100) Subject: tracing/function-graph-tracer: display unified style cmdline and pid X-Git-Tag: v2.6.29-rc1~586^2~34^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11e84acc400921743cc8d488e4a265cd98a655c7;p=pandora-kernel.git 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed