All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/perf: Increase symbol KSYM_NAME_LEN size
@ 2011-10-20  7:43 Ricardo Ribalda Delgado
  2011-10-20  7:54 ` Pekka Enberg
  0 siblings, 1 reply; 7+ messages in thread
From: Ricardo Ribalda Delgado @ 2011-10-20  7:43 UTC (permalink / raw)
  To: a.p.zijlstra, paulus, mingo, acme, anton, penberg, daahern,
	linux-kernel
  Cc: Ricardo Ribalda Delgado

Fglrx propietary driver has symbol names over 128 chars (:S). This
breaks the function kallsyms__parse.

This fix increases the size of KSYM_NAME_LEN, so kallsyms__parse can
work on such kernels.

The only counterparty, is that such function requires 128 more bytes to
work.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
 tools/perf/util/symbol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 40eeaf0..d4f8750 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -24,7 +24,7 @@
 #include <sys/utsname.h>
 
 #ifndef KSYM_NAME_LEN
-#define KSYM_NAME_LEN 128
+#define KSYM_NAME_LEN 256
 #endif
 
 #ifndef NT_GNU_BUILD_ID
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-10-21 15:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-20  7:43 [PATCH] tools/perf: Increase symbol KSYM_NAME_LEN size Ricardo Ribalda Delgado
2011-10-20  7:54 ` Pekka Enberg
2011-10-20  8:14   ` Cyrill Gorcunov
2011-10-20  8:45     ` Ricardo Ribalda Delgado
2011-10-20  8:58       ` Cyrill Gorcunov
2011-10-20  9:14       ` Pekka Enberg
2011-10-21 15:23         ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.