1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __TOOLS_KALLSYMS_H_
3 #define __TOOLS_KALLSYMS_H_ 1
6 #include <linux/types.h>
9 #define KSYM_NAME_LEN 256
12 static inline u8 kallsyms2elf_binding(char type)
17 return isupper(type) ? STB_GLOBAL : STB_LOCAL;
20 int hex2u64(const char *ptr, u64 *long_val);
22 u8 kallsyms2elf_type(char type);
24 bool kallsyms__is_function(char symbol_type);
26 int kallsyms__parse(const char *filename, void *arg,
27 int (*process_symbol)(void *arg, const char *name,
28 char type, u64 start));
30 #endif /* __TOOLS_KALLSYMS_H_ */