]> git.baikalelectronics.ru Git - kernel.git/commit
perf list: Fix max event string size
authorIngo Molnar <mingo@elte.hu>
Fri, 29 Apr 2011 20:52:42 +0000 (22:52 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 Apr 2011 20:52:54 +0000 (22:52 +0200)
commit00b5f30528991c4fc4652b5a19ef74cb363c4ad2
treee143b2ed2027ee4a9e35a73dc8c43763790988c8
parent8f1a3ed5c02b17b40742c5fcbe2bcf8403357a5c
perf list: Fix max event string size

Recent stalled-cycles event names were larger than the 40 chars printout
used by perf list.

Extend that, make it robust for future extensions and also adjust alignments
in face of wider event names.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/n/tip-7y40wib8n009io7hjpn1dsrm@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/parse-events.c