Linux Audio

Check our new training course

Loading...
v3.15
 
 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_ */
v6.8
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef __TOOLS_KALLSYMS_H_
 3#define __TOOLS_KALLSYMS_H_ 1
 4
 5#include <elf.h>
 6#include <linux/ctype.h>
 7#include <linux/types.h>
 8
 9#ifndef KSYM_NAME_LEN
10#define KSYM_NAME_LEN 512
11#endif
12
13static inline u8 kallsyms2elf_binding(char type)
14{
15	if (type == 'W')
16		return STB_WEAK;
17
18	return isupper(type) ? STB_GLOBAL : STB_LOCAL;
19}
20
21u8 kallsyms2elf_type(char type);
22
23bool kallsyms__is_function(char symbol_type);
24
25int kallsyms__parse(const char *filename, void *arg,
26		    int (*process_symbol)(void *arg, const char *name,
27					  char type, u64 start));
28
29#endif /* __TOOLS_KALLSYMS_H_ */