1 #ifndef _LIBLOCKDEP_LINUX_KALLSYMS_H_
2 #define _LIBLOCKDEP_LINUX_KALLSYMS_H_
4 #include <linux/kernel.h>
7 #define KSYM_NAME_LEN 128
11 static inline const char *kallsyms_lookup(unsigned long addr,
12 unsigned long *symbolsize,
13 unsigned long *offset,
14 char **modname, char *namebuf)
21 static inline void print_ip_sym(unsigned long ip)
25 name = backtrace_symbols((void **)&ip, 1);
27 printf("%s\n", *name);