33 lines · c
1// SPDX-License-Identifier: GPL-2.02#ifndef __PERF_MAP_SYMBOL3#define __PERF_MAP_SYMBOL 14 5#include <linux/types.h>6 7struct maps;8struct map;9struct symbol;10 11struct map_symbol {12 struct maps *maps;13 struct map *map;14 struct symbol *sym;15};16 17struct addr_map_symbol {18 struct map_symbol ms;19 u64 addr;20 u64 al_addr;21 char al_level;22 u64 phys_addr;23 u64 data_page_size;24};25 26void map_symbol__exit(struct map_symbol *ms);27void addr_map_symbol__exit(struct addr_map_symbol *ams);28 29void map_symbol__copy(struct map_symbol *dst, struct map_symbol *src);30void addr_map_symbol__copy(struct addr_map_symbol *dst, struct addr_map_symbol *src);31 32#endif // __PERF_MAP_SYMBOL33