From f4491d7b0404191a143aae3ee93fe04d396b3dea Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 8 Mar 2011 12:00:10 +0100 Subject: kallsyms/printk: enable symbol printing support (%pS) With this kallsyms finally start working at least on ARM. This enables us resolving addresses into symbols which is particularly useful in combination with stack unwinding support. As kallsyms now compile and work we can remove the depends on BROKEN. Signed-off-by: Sascha Hauer --- include/kallsyms.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/kallsyms.h') diff --git a/include/kallsyms.h b/include/kallsyms.h index 5117be2272..69b84d2c6c 100644 --- a/include/kallsyms.h +++ b/include/kallsyms.h @@ -2,6 +2,11 @@ #define __KALLSYMS_H #define KSYM_NAME_LEN 128 +#define KSYM_SYMBOL_LEN (sizeof("%s+%#lx/%#lx [%s]") + (KSYM_NAME_LEN - 1) + \ + 2*(BITS_PER_LONG*3/10) + (MODULE_NAME_LEN - 1) + 1) unsigned long kallsyms_lookup_name(const char *name); +/* Look up a kernel symbol and return it in a text buffer. */ +int sprint_symbol(char *buffer, unsigned long address); + #endif /* __KALLSYMS_H */ -- cgit v1.2.3