Skip to content

Commit

Permalink
perf symbols: Increase symbol KSYM_NAME_LEN size
Browse files Browse the repository at this point in the history
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.

Acked-by: Pekka Enberg <[email protected]>
Cc: Anton Blanchard <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ricardo Ribalda Delgado <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
ribalda authored and acmel committed Oct 21, 2011
1 parent a6e51f9 commit c752d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c752d04

Please sign in to comment.