perf symbols: Add a long_name_len member to struct dso
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 17 Nov 2009 17:40:53 +0000 (15:40 -0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 19 Nov 2009 05:03:34 +0000 (06:03 +0100)
commitcfc10d3bcc50d70f72c0f43d03eee965c726ccc0
tree1316349f72bca0c8ec3afd284f4151af5a29c32a
parent11ada26c78febe4662a8e848f3bff74e3200c920
perf symbols: Add a long_name_len member to struct dso

Using a two bytes hole we already had and since we also need to
calculate this strlen for fetching the buildids. We'll use it in
'perf top' to auto-adjust the output based on the terminal
width.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1258479655-28662-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/symbol.c
tools/perf/util/symbol.h