5 #include <linux/refcount.h> 6 #include <linux/compiler.h> 7 #include <linux/list.h> 8 #include <linux/rbtree.h> 13 #include <linux/types.h> 50 #define KMAP_NAME_LEN 256 59 struct rb_root entries;
122 #define map__for_each_symbol(map, pos, n) \ 123 dso__for_each_symbol(map->dso, pos, n) 132 #define __map__for_each_symbol_by_name(map, sym_name, pos) \ 133 for (pos = map__find_symbol_by_name(map, sym_name); \ 135 !symbol__match_symbol_name(pos->name, sym_name, \ 136 SYMBOL_TAG_INCLUDE__DEFAULT_ONLY); \ 137 pos = symbol__next_by_name(pos)) 139 #define map__for_each_symbol_by_name(map, sym_name, pos) \ 140 __map__for_each_symbol_by_name(map, sym_name, (pos)) 145 u64
pgoff, u32 d_maj, u32 d_min, u64
ino,
152 static inline struct map *
map__get(
struct map *map)
155 refcount_inc(&map->
refcnt);
167 #define map__zput(map) __map__zput(&map) 224 u64 addr,
struct map **mapp);
249 #define ENTRY_TRAMPOLINE_NAME "__entry_SYSCALL_64_trampoline" struct map * maps__find(struct maps *maps, u64 addr)
bool map__has_symbols(const struct map *map)
int map_groups__fixup_overlappings(struct map_groups *mg, struct map *map, FILE *fp)
u64(* map_ip)(struct map *, u64)
int map_groups__clone(struct thread *thread, struct map_groups *parent)
struct map * map_groups__find_by_name(struct map_groups *mg, const char *name)
struct map * map__next(struct map *map)
void map__delete(struct map *map)
static u64 map__unmap_ip(struct map *map, u64 ip)
struct symbol * map_groups__find_symbol_by_name(struct map_groups *mg, const char *name, struct map **mapp)
void map__put(struct map *map)
static u64 map__map_ip(struct map *map, u64 ip)
void maps__insert(struct maps *maps, struct map *map)
static void __map__zput(struct map **map)
int map__load(struct map *map)
static u64 identity__map_ip(struct map *map __maybe_unused, u64 ip)
int map__fprintf_srcline(struct map *map, u64 addr, const char *prefix, FILE *fp)
#define ENTRY_TRAMPOLINE_NAME
void maps__remove(struct maps *maps, struct map *map)
static bool is_entry_trampoline(const char *name)
void map_groups__init(struct map_groups *mg, struct machine *machine)
struct map * map_groups__first(struct map_groups *mg)
void map__fixup_start(struct map *map)
bool __map__is_extra_kernel_map(const struct map *map)
struct map * map__clone(struct map *map)
void map__reloc_vmlinux(struct map *map)
struct map_groups * map_groups__new(struct machine *machine)
size_t map__fprintf(struct map *map, FILE *fp)
int map__set_kallsyms_ref_reloc_sym(struct map *map, const char *symbol_name, u64 addr)
static bool __map__is_kmodule(const struct map *map)
struct kmap * __map__kmap(struct map *map)
void map_groups__delete(struct map_groups *mg)
void map_groups__exit(struct map_groups *mg)
char * map__srcline(struct map *map, u64 addr, struct symbol *sym)
struct map * map__new2(u64 start, struct dso *dso)
struct map_groups * groups
struct map * map__new(struct machine *machine, u64 start, u64 len, u64 pgoff, u32 d_maj, u32 d_min, u64 ino, u64 ino_gen, u32 prot, u32 flags, char *filename, struct thread *thread)
static size_t map__size(const struct map *map)
u64 map__objdump_2mem(struct map *map, u64 ip)
struct kmap * map__kmap(struct map *map)
void map_groups__put(struct map_groups *mg)
size_t map_groups__fprintf(struct map_groups *mg, FILE *fp)
struct symbol * map_groups__find_symbol(struct map_groups *mg, u64 addr, struct map **mapp)
int map_groups__find_ams(struct addr_map_symbol *ams)
struct symbol * map__find_symbol_by_name(struct map *map, const char *name)
struct map_groups * kmaps
struct ref_reloc_sym * ref_reloc_sym
bool __map__is_kernel(const struct map *map)
static void map_groups__remove(struct map_groups *mg, struct map *map)
static struct map * map_groups__next(struct map *map)
static struct map * map__get(struct map *map)
static struct map * map_groups__find(struct map_groups *mg, u64 addr)
struct symbol * map__find_symbol(struct map *map, u64 addr)
bool map_groups__empty(struct map_groups *mg)
static int sym(yyscan_t scanner, int type, int config)
struct symbol * maps__find_symbol_by_name(struct maps *maps, const char *name, struct map **mapp)
static struct map_groups * map_groups__get(struct map_groups *mg)
u64 map__rip_2objdump(struct map *map, u64 rip)
int map__overlap(struct map *l, struct map *r)
u64(* unmap_ip)(struct map *, u64)
void map__fixup_end(struct map *map)
struct map_groups * map__kmaps(struct map *map)
static void map_groups__insert(struct map_groups *mg, struct map *map)
void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso)
size_t map__fprintf_dsoname(struct map *map, FILE *fp)
struct map * maps__first(struct maps *maps)