Home
last modified time | relevance | path

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

/tools/perf/tests/
Dthread-mg-share.c16 struct map_groups *mg; in test__thread_mg_share() local
46 mg = leader->mg; in test__thread_mg_share()
47 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 4); in test__thread_mg_share()
50 TEST_ASSERT_VAL("map groups don't match", mg == t1->mg); in test__thread_mg_share()
51 TEST_ASSERT_VAL("map groups don't match", mg == t2->mg); in test__thread_mg_share()
52 TEST_ASSERT_VAL("map groups don't match", mg == t3->mg); in test__thread_mg_share()
74 other_mg = other->mg; in test__thread_mg_share()
77 TEST_ASSERT_VAL("map groups don't match", other_mg == other_leader->mg); in test__thread_mg_share()
81 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 3); in test__thread_mg_share()
84 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 2); in test__thread_mg_share()
[all …]
DBuild26 perf-y += thread-mg-share.o
Dcode-reading.c268 ret_len = dso__data_read_offset(al.map->dso, thread->mg->machine, in read_object_code()
/tools/perf/util/
Dmap.h75 void map_groups__delete(struct map_groups *mg);
76 bool map_groups__empty(struct map_groups *mg);
78 static inline struct map_groups *map_groups__get(struct map_groups *mg) in map_groups__get() argument
80 if (mg) in map_groups__get()
81 refcount_inc(&mg->refcnt); in map_groups__get()
82 return mg; in map_groups__get()
85 void map_groups__put(struct map_groups *mg);
183 size_t __map_groups__fprintf_maps(struct map_groups *mg, enum map_type type,
192 void map_groups__init(struct map_groups *mg, struct machine *machine);
193 void map_groups__exit(struct map_groups *mg);
[all …]
Dmap.c496 void map_groups__init(struct map_groups *mg, struct machine *machine) in map_groups__init() argument
500 maps__init(&mg->maps[i]); in map_groups__init()
502 mg->machine = machine; in map_groups__init()
503 refcount_set(&mg->refcnt, 1); in map_groups__init()
527 void map_groups__exit(struct map_groups *mg) in map_groups__exit() argument
532 maps__exit(&mg->maps[i]); in map_groups__exit()
535 bool map_groups__empty(struct map_groups *mg) in map_groups__empty() argument
540 if (maps__first(&mg->maps[i])) in map_groups__empty()
549 struct map_groups *mg = malloc(sizeof(*mg)); in map_groups__new() local
551 if (mg != NULL) in map_groups__new()
[all …]
Dthread.c24 thread->mg = map_groups__new(machine); in thread__init_map_groups()
28 thread->mg = map_groups__get(leader->mg); in thread__init_map_groups()
33 return thread->mg ? 0 : -1; in thread__init_map_groups()
83 if (thread->mg) { in thread__delete()
84 map_groups__put(thread->mg); in thread__delete()
85 thread->mg = NULL; in thread__delete()
252 map_groups__fprintf(thread->mg, fp); in thread__fprintf()
263 map_groups__fixup_overlappings(thread->mg, map, stderr); in thread__insert_map()
264 map_groups__insert(thread->mg, map); in thread__insert_map()
275 struct maps *maps = &thread->mg->maps[i]; in __thread__prepare_access()
[all …]
Dunwind-libunwind.c35 if (!thread->mg->machine->env || !thread->mg->machine->env->arch) in unwind__prepare_access()
38 dso_type = dso__type(map->dso, thread->mg->machine); in unwind__prepare_access()
42 arch = normalize_arch(thread->mg->machine->env->arch); in unwind__prepare_access()
Dmachine.c351 if (!leader->mg) in machine__update_thread_pid()
352 leader->mg = map_groups__new(machine); in machine__update_thread_pid()
354 if (!leader->mg) in machine__update_thread_pid()
357 if (th->mg == leader->mg) in machine__update_thread_pid()
360 if (th->mg) { in machine__update_thread_pid()
366 if (!map_groups__empty(th->mg)) in machine__update_thread_pid()
369 map_groups__put(th->mg); in machine__update_thread_pid()
372 th->mg = map_groups__get(leader->mg); in machine__update_thread_pid()
1094 static void map_groups__fixup_end(struct map_groups *mg) in map_groups__fixup_end() argument
1098 __map_groups__fixup_end(mg, i); in map_groups__fixup_end()
[all …]
Dthread.h22 struct map_groups *mg; member
Devent.c1383 struct map_groups *mg = thread->mg; in thread__find_addr_map() local
1384 struct machine *machine = mg->machine; in thread__find_addr_map()
1400 mg = &machine->kmaps; in thread__find_addr_map()
1406 mg = &machine->kmaps; in thread__find_addr_map()
1426 al->map = map_groups__find(mg, type, al->addr); in thread__find_addr_map()
1438 mg != &machine->kmaps && in thread__find_addr_map()
1440 mg = &machine->kmaps; in thread__find_addr_map()
Dthread-stack.c106 if (thread->mg && thread->mg->machine) in thread_stack__new()
107 ts->kernel_start = machine__kernel_start(thread->mg->machine); in thread_stack__new()
Dunwind-libdw.c210 .machine = thread->mg->machine, in unwind__get_entries()
Dvdso.c145 map = map_groups__first(thread->mg, MAP__FUNCTION); in machine__thread_dso_type()
Dsymbol.h317 void __map_groups__fixup_end(struct map_groups *mg, enum map_type type);
Dsymbol.c235 void __map_groups__fixup_end(struct map_groups *mg, enum map_type type) in __map_groups__fixup_end() argument
237 struct maps *maps = &mg->maps[type]; in __map_groups__fixup_end()
1681 struct map *map_groups__find_by_name(struct map_groups *mg, in map_groups__find_by_name() argument
1684 struct maps *maps = &mg->maps[type]; in map_groups__find_by_name()
Dunwind-libunwind-local.c731 .machine = thread->mg->machine, in _unwind__get_entries()
/tools/perf/arch/powerpc/tests/
Ddwarf-unwind.c29 map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp); in sample_ustack()
/tools/perf/arch/arm/tests/
Ddwarf-unwind.c28 map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp); in sample_ustack()
/tools/perf/arch/x86/tests/
Ddwarf-unwind.c29 map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp); in sample_ustack()
/tools/perf/arch/arm64/tests/
Ddwarf-unwind.c28 map = map_groups__find(thread->mg, MAP__VARIABLE, (u64) sp); in sample_ustack()
/tools/perf/ui/stdio/
Dhist.c897 __map_groups__fprintf_maps(h->thread->mg, in hists__fprintf()