diff options
-rw-r--r-- | include/linux/kallsyms.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h index ad71ac053d6e..849043ce4ed6 100644 --- a/include/linux/kallsyms.h +++ b/include/linux/kallsyms.h | |||
@@ -64,4 +64,18 @@ static inline void print_symbol(const char *fmt, unsigned long addr) | |||
64 | __builtin_extract_return_addr((void *)addr)); | 64 | __builtin_extract_return_addr((void *)addr)); |
65 | } | 65 | } |
66 | 66 | ||
67 | #ifndef CONFIG_64BIT | ||
68 | #define print_ip_sym(ip) \ | ||
69 | do { \ | ||
70 | printk("[<%08lx>]", ip); \ | ||
71 | print_symbol(" %s\n", ip); \ | ||
72 | } while(0) | ||
73 | #else | ||
74 | #define print_ip_sym(ip) \ | ||
75 | do { \ | ||
76 | printk("[<%016lx>]", ip); \ | ||
77 | print_symbol(" %s\n", ip); \ | ||
78 | } while(0) | ||
79 | #endif | ||
80 | |||
67 | #endif /*_LINUX_KALLSYMS_H*/ | 81 | #endif /*_LINUX_KALLSYMS_H*/ |