1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __TOOLS_KALLSYMS_H_
3 #define __TOOLS_KALLSYMS_H_ 1
6 #include <linux/ctype.h>
7 #include <linux/types.h>
10 #define KSYM_NAME_LEN 256
13 static inline u8
kallsyms2elf_binding(char type
)
18 return isupper(type
) ? STB_GLOBAL
: STB_LOCAL
;
21 u8
kallsyms2elf_type(char type
);
23 int kallsyms__parse(const char *filename
, void *arg
,
24 int (*process_symbol
)(void *arg
, const char *name
,
25 char type
, u64 start
));
27 #endif /* __TOOLS_KALLSYMS_H_ */