Orangefs: Merge tag 'v4.4-rc1' into for-next
[deliverable/linux.git] / tools / lib / symbol / kallsyms.h
CommitLineData
c506c96b
ACM
1#ifndef __TOOLS_KALLSYMS_H_
2#define __TOOLS_KALLSYMS_H_ 1
3
4#include <elf.h>
5#include <linux/ctype.h>
6#include <linux/types.h>
7
8#ifndef KSYM_NAME_LEN
9#define KSYM_NAME_LEN 256
10#endif
11
8e947f1e 12static inline u8 kallsyms2elf_binding(char type)
c506c96b
ACM
13{
14 if (type == 'W')
15 return STB_WEAK;
16
17 return isupper(type) ? STB_GLOBAL : STB_LOCAL;
18}
19
f845086a
ACM
20u8 kallsyms2elf_type(char type);
21
c506c96b
ACM
22int kallsyms__parse(const char *filename, void *arg,
23 int (*process_symbol)(void *arg, const char *name,
24 char type, u64 start));
25
26#endif /* __TOOLS_KALLSYMS_H_ */
This page took 1.56693 seconds and 5 git commands to generate.