1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LIBLOCKDEP_LINUX_KALLSYMS_H_
3 #define _LIBLOCKDEP_LINUX_KALLSYMS_H_
5 #include <linux/kernel.h>
9 #define KSYM_NAME_LEN 128
13 static inline const char *kallsyms_lookup(unsigned long addr
,
14 unsigned long *symbolsize
,
15 unsigned long *offset
,
16 char **modname
, char *namebuf
)
23 static inline void print_ip_sym(unsigned long ip
)
27 name
= backtrace_symbols((void **)&ip
, 1);
29 dprintf(STDOUT_FILENO
, "%s\n", *name
);