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