1 #ifndef _LIBLOCKDEP_LINUX_KALLSYMS_H_
2 #define _LIBLOCKDEP_LINUX_KALLSYMS_H_
4 #include <linux/kernel.h>
8 #define KSYM_NAME_LEN 128
12 static inline const char *kallsyms_lookup(unsigned long addr,
13 unsigned long *symbolsize,
14 unsigned long *offset,
15 char **modname, char *namebuf)
22 static inline void print_ip_sym(unsigned long ip)
26 name = backtrace_symbols((void **)&ip, 1);
28 dprintf(STDOUT_FILENO, "%s\n", *name);