2019-01-27 04:02:41 -07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#ifndef __PERF_MAP_SYMBOL
|
|
|
|
#define __PERF_MAP_SYMBOL 1
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2019-11-25 17:58:33 -07:00
|
|
|
struct maps;
|
2019-01-27 04:02:41 -07:00
|
|
|
struct map;
|
|
|
|
struct symbol;
|
|
|
|
|
|
|
|
struct map_symbol {
|
2019-11-25 18:15:35 -07:00
|
|
|
struct maps *maps;
|
2019-01-27 04:02:41 -07:00
|
|
|
struct map *map;
|
|
|
|
struct symbol *sym;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct addr_map_symbol {
|
2019-11-04 11:57:38 -07:00
|
|
|
struct map_symbol ms;
|
2019-01-27 04:02:41 -07:00
|
|
|
u64 addr;
|
|
|
|
u64 al_addr;
|
2022-01-26 03:59:26 -07:00
|
|
|
char al_level;
|
2019-01-27 04:02:41 -07:00
|
|
|
u64 phys_addr;
|
2020-12-16 11:57:58 -07:00
|
|
|
u64 data_page_size;
|
2019-01-27 04:02:41 -07:00
|
|
|
};
|
2023-10-24 15:23:14 -07:00
|
|
|
|
|
|
|
void map_symbol__exit(struct map_symbol *ms);
|
|
|
|
void addr_map_symbol__exit(struct addr_map_symbol *ams);
|
|
|
|
|
2024-07-31 16:55:00 -07:00
|
|
|
void map_symbol__copy(struct map_symbol *dst, struct map_symbol *src);
|
|
|
|
void addr_map_symbol__copy(struct addr_map_symbol *dst, struct addr_map_symbol *src);
|
|
|
|
|
2019-01-27 04:02:41 -07:00
|
|
|
#endif // __PERF_MAP_SYMBOL
|