From: Arnaldo Carvalho de Melo Date: Tue, 17 Nov 2009 17:40:54 +0000 (-0200) Subject: perf top: Auto adjust symbol and dso widths X-Git-Tag: v2.6.33-rc1~399^2~161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13cc5079f235906e60577dbce8da2f9607e67e93;p=pandora-kernel.git perf top: Auto adjust symbol and dso widths We pre-calculate the symbol name length, then after we sort the entries to print, calculate the biggest one and use that for the symbol name width justification, then use the dso->long_name->len to justificate the DSO name, deciding whether using the short or long name depending on how much space we have on the terminal. IOW give as much info to the user as the terminal width allows. Suggested-by: Ingo Molnar Signed-off-by: Arnaldo Carvalho de Melo Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <1258479655-28662-2-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed