Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.2-rc4 24 lines 495 B view raw
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 12static inline u8 kallsyms2elf_type(char type) 13{ 14 if (type == 'W') 15 return STB_WEAK; 16 17 return isupper(type) ? STB_GLOBAL : STB_LOCAL; 18} 19 20int kallsyms__parse(const char *filename, void *arg, 21 int (*process_symbol)(void *arg, const char *name, 22 char type, u64 start)); 23 24#endif /* __TOOLS_KALLSYMS_H_ */