aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-11-17 12:40:53 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-19 00:03:34 -0500
commitcfc10d3bcc50d70f72c0f43d03eee965c726ccc0 (patch)
tree1316349f72bca0c8ec3afd284f4151af5a29c32a /tools/perf/util/symbol.h
parent11ada26c78febe4662a8e848f3bff74e3200c920 (diff)
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>
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r--tools/perf/util/symbol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index 51c5a4a08133..5ad1019607dd 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -66,6 +66,7 @@ struct dso {
66 u8 has_build_id:1; 66 u8 has_build_id:1;
67 unsigned char origin; 67 unsigned char origin;
68 u8 build_id[BUILD_ID_SIZE]; 68 u8 build_id[BUILD_ID_SIZE];
69 u16 long_name_len;
69 const char *short_name; 70 const char *short_name;
70 char *long_name; 71 char *long_name;
71 char name[0]; 72 char name[0];