Home
last modified time | relevance | path

Searched refs:mg (Results 1 – 9 of 9) sorted by relevance

/tools/perf/util/
Dmap.h110 size_t __map_groups__fprintf_maps(struct map_groups *mg,
115 void map_groups__init(struct map_groups *mg);
116 void map_groups__exit(struct map_groups *mg);
117 int map_groups__clone(struct map_groups *mg,
119 size_t map_groups__fprintf(struct map_groups *mg, int verbose, FILE *fp);
120 size_t map_groups__fprintf_maps(struct map_groups *mg, int verbose, FILE *fp);
125 static inline void map_groups__insert(struct map_groups *mg, struct map *map) in map_groups__insert() argument
127 maps__insert(&mg->maps[map->type], map); in map_groups__insert()
128 map->groups = mg; in map_groups__insert()
131 static inline void map_groups__remove(struct map_groups *mg, struct map *map) in map_groups__remove() argument
[all …]
Dmap.c266 void map_groups__init(struct map_groups *mg) in map_groups__init() argument
270 mg->maps[i] = RB_ROOT; in map_groups__init()
271 INIT_LIST_HEAD(&mg->removed_maps[i]); in map_groups__init()
273 mg->machine = NULL; in map_groups__init()
299 void map_groups__exit(struct map_groups *mg) in map_groups__exit() argument
304 maps__delete(&mg->maps[i]); in map_groups__exit()
305 maps__delete_removed(&mg->removed_maps[i]); in map_groups__exit()
309 void map_groups__flush(struct map_groups *mg) in map_groups__flush() argument
314 struct rb_root *root = &mg->maps[type]; in map_groups__flush()
326 list_add_tail(&pos->node, &mg->removed_maps[pos->type]); in map_groups__flush()
[all …]
Dthread.c15 map_groups__init(&self->mg); in thread__new()
27 map_groups__exit(&self->mg); in thread__delete()
60 map_groups__fprintf(&thread->mg, verbose, fp); in thread__fprintf()
65 map_groups__fixup_overlappings(&self->mg, map, verbose, stderr); in thread__insert_map()
66 map_groups__insert(&self->mg, map); in thread__insert_map()
83 if (map_groups__clone(&self->mg, &parent->mg, i) < 0) in thread__fork()
Dthread.h14 struct map_groups mg; member
38 return self ? map_groups__find(&self->mg, type, addr) : NULL; in thread__find_map()
Devent.c597 struct map_groups *mg = &self->mg; in thread__find_addr_map() local
611 mg = &machine->kmaps; in thread__find_addr_map()
616 mg = &machine->kmaps; in thread__find_addr_map()
640 al->map = map_groups__find(mg, type, al->addr); in thread__find_addr_map()
653 machine && mg != &machine->kmaps) { in thread__find_addr_map()
654 mg = &machine->kmaps; in thread__find_addr_map()
Dmachine.c639 static void map_groups__fixup_end(struct map_groups *mg) in map_groups__fixup_end() argument
643 __map_groups__fixup_end(mg, i); in map_groups__fixup_end()
673 static int map_groups__set_modules_path_dir(struct map_groups *mg, in map_groups__set_modules_path_dir() argument
699 ret = map_groups__set_modules_path_dir(mg, path); in map_groups__set_modules_path_dir()
714 map = map_groups__find_by_name(mg, MAP__FUNCTION, in map_groups__set_modules_path_dir()
Dsymbol.h248 void __map_groups__fixup_end(struct map_groups *mg, enum map_type type);
Dsymbol.c183 void __map_groups__fixup_end(struct map_groups *mg, enum map_type type) in __map_groups__fixup_end() argument
186 struct rb_node *nd, *prevnd = rb_first(&mg->maps[type]); in __map_groups__fixup_end()
869 struct map *map_groups__find_by_name(struct map_groups *mg, in map_groups__find_by_name() argument
874 for (nd = rb_first(&mg->maps[type]); nd; nd = rb_next(nd)) { in map_groups__find_by_name()
/tools/perf/ui/stdio/
Dhist.c453 __map_groups__fprintf_maps(&h->thread->mg, in hists__fprintf()