/openbmc/linux/tools/perf/util/ |
H A D | thread.h | 138 return RC_CHK_ACCESS(thread)->maps; in thread__maps() 143 RC_CHK_ACCESS(thread)->maps = maps; in thread__set_maps() 148 return RC_CHK_ACCESS(thread)->pid_; in thread__pid() 153 RC_CHK_ACCESS(thread)->pid_ = pid_; in thread__set_pid() 158 return RC_CHK_ACCESS(thread)->tid; in thread__tid() 163 RC_CHK_ACCESS(thread)->tid = tid; in thread__set_tid() 178 return RC_CHK_ACCESS(thread)->cpu; in thread__cpu() 183 RC_CHK_ACCESS(thread)->cpu = cpu; in thread__set_cpu() 268 RC_CHK_ACCESS(thread)->priv = p; in thread__set_priv() 273 return RC_CHK_ACCESS(thread)->ts; in thread__ts() [all …]
|
H A D | namespaces.c | 134 rv = nsinfo__get_nspid(&RC_CHK_ACCESS(nsi)->tgid, &RC_CHK_ACCESS(nsi)->nstgid, in nsinfo__init() 165 RC_CHK_ACCESS(nsi)->pid = pid; in nsinfo__new() 166 RC_CHK_ACCESS(nsi)->tgid = pid; in nsinfo__new() 167 RC_CHK_ACCESS(nsi)->nstgid = pid; in nsinfo__new() 169 RC_CHK_ACCESS(nsi)->in_pidns = false; in nsinfo__new() 182 return RC_CHK_ACCESS(nsi)->mntns_path; in nsinfo__mntns_path() 214 return &RC_CHK_ACCESS(nsi)->refcnt; in nsinfo__refcnt() 256 return RC_CHK_ACCESS(nsi)->tgid; in nsinfo__tgid() 261 return RC_CHK_ACCESS(nsi)->nstgid; in nsinfo__nstgid() 266 return RC_CHK_ACCESS(nsi)->pid; in nsinfo__pid() [all …]
|
H A D | map.h | 53 return RC_CHK_ACCESS(map)->dso; in map__dso() 68 return RC_CHK_ACCESS(map)->map_ip; in map__map_ip_ptr() 78 return RC_CHK_ACCESS(map)->start; in map__start() 83 return RC_CHK_ACCESS(map)->end; in map__end() 88 return RC_CHK_ACCESS(map)->pgoff; in map__pgoff() 93 return RC_CHK_ACCESS(map)->reloc; in map__reloc() 98 return RC_CHK_ACCESS(map)->flags; in map__flags() 103 return RC_CHK_ACCESS(map)->prot; in map__prot() 108 return RC_CHK_ACCESS(map)->priv; in map__priv() 264 RC_CHK_ACCESS(map)->end = end; in map__set_end() [all …]
|
H A D | maps.h | 86 return &RC_CHK_ACCESS(maps)->entries; in maps__entries() 91 return RC_CHK_ACCESS(maps)->machine; in maps__machine() 96 return &RC_CHK_ACCESS(maps)->lock; in maps__lock() 101 return RC_CHK_ACCESS(maps)->maps_by_name; in maps__maps_by_name() 106 return RC_CHK_ACCESS(maps)->nr_maps; in maps__nr_maps() 111 return &RC_CHK_ACCESS(maps)->refcnt; in maps__refcnt() 117 return RC_CHK_ACCESS(maps)->addr_space; in maps__addr_space() 122 return RC_CHK_ACCESS(maps)->unwind_libunwind_ops; in maps__unwind_libunwind_ops()
|
H A D | maps.c | 17 RC_CHK_ACCESS(maps)->entries = RB_ROOT; in maps__init() 18 RC_CHK_ACCESS(maps)->machine = machine; in maps__init() 19 RC_CHK_ACCESS(maps)->last_search_by_name = NULL; in maps__init() 20 RC_CHK_ACCESS(maps)->nr_maps = 0; in maps__init() 21 RC_CHK_ACCESS(maps)->maps_by_name = NULL; in maps__init() 32 zfree(&RC_CHK_ACCESS(maps)->maps_by_name); in __maps__free_maps_by_name() 33 RC_CHK_ACCESS(maps)->nr_maps_allocated = 0; in __maps__free_maps_by_name() 74 ++RC_CHK_ACCESS(maps)->nr_maps; in maps__insert() 129 assert(rb_node->RC_CHK_ACCESS(map) == RC_CHK_ACCESS(map)); in maps__remove() 133 --RC_CHK_ACCESS(maps)->nr_maps; in maps__remove() [all …]
|
H A D | cpumap.c | 80 RC_CHK_ACCESS(map)->map[i].cpu = -1; in cpu_map__from_entries() 82 RC_CHK_ACCESS(map)->map[i].cpu = (int) data->cpus_data.cpu[i]; in cpu_map__from_entries() 110 RC_CHK_ACCESS(map)->map[j++].cpu = cpu + cpus_per_i; in cpu_map__from_mask() 127 RC_CHK_ACCESS(map)->map[i++].cpu = -1; in cpu_map__from_range() 131 RC_CHK_ACCESS(map)->map[i].cpu = cpu; in cpu_map__from_range() 167 RC_CHK_ACCESS(cpus)->map[i].cpu = -1; in perf_cpu_map__empty_new()
|
H A D | unwind-libunwind.c | 17 RC_CHK_ACCESS(maps)->unwind_libunwind_ops = ops; in unwind__register_ops()
|
H A D | map.c | 300 dso__zput(RC_CHK_ACCESS(map)->dso); in map__exit() 423 map = memdup(RC_CHK_ACCESS(from), size); in map__clone() 611 return (struct kmap *)(&RC_CHK_ACCESS(map)[1]); in __map__kmap()
|
H A D | thread.c | 68 RC_CHK_ACCESS(thread)->nsinfo = nsinfo__new(pid); in thread__new() 114 nsinfo__zput(RC_CHK_ACCESS(thread)->nsinfo); in thread__delete()
|
H A D | unwind-libdw.c | 266 .machine = RC_CHK_ACCESS(thread__maps(thread))->machine, in unwind__get_entries()
|
H A D | symbol.c | 847 if (RC_CHK_ACCESS(curr_map) != RC_CHK_ACCESS(initial_map) && in maps__split_kallsyms() 1342 if (RC_CHK_ACCESS(new_map) == RC_CHK_ACCESS(replacement_map)) { in dso__load_kcore()
|
H A D | pmus.c | 607 if (RC_CHK_ACCESS(pmu->cpus)->nr != cpu__max_cpu().cpu) in perf_pmus__find_core_pmu()
|
H A D | unwind-libunwind-local.c | 695 RC_CHK_ACCESS(maps)->addr_space = addr_space; in _unwind__prepare_access()
|
H A D | machine.c | 972 if (RC_CHK_ACCESS(map) != RC_CHK_ACCESS(machine->vmlinux_map)) in machine__process_ksymbol_unregister() 2061 if (threads->last_match && RC_CHK_ACCESS(threads->last_match) == RC_CHK_ACCESS(th)) in __machine__remove_thread()
|
H A D | callchain.c | 1145 if (RC_CHK_ACCESS(al->maps) == RC_CHK_ACCESS(machine__kernel_maps(machine))) { in fill_callchain_info()
|
H A D | hist.c | 2145 RC_CHK_ACCESS(he->thread) != RC_CHK_ACCESS(hists->thread_filter)) { in hists__filter_entry_by_thread()
|
H A D | sort.c | 131 return th && RC_CHK_ACCESS(he->thread) != RC_CHK_ACCESS(th); in hist_entry__thread_filter()
|
/openbmc/linux/tools/perf/tests/ |
H A D | thread-maps-share.c | 49 TEST_ASSERT_VAL("maps don't match", RC_CHK_ACCESS(maps) == RC_CHK_ACCESS(thread__maps(t1))); in test__thread_maps_share() 50 TEST_ASSERT_VAL("maps don't match", RC_CHK_ACCESS(maps) == RC_CHK_ACCESS(thread__maps(t2))); in test__thread_maps_share() 51 TEST_ASSERT_VAL("maps don't match", RC_CHK_ACCESS(maps) == RC_CHK_ACCESS(thread__maps(t3))); in test__thread_maps_share() 76 TEST_ASSERT_VAL("maps don't match", RC_CHK_ACCESS(other_maps) == in test__thread_maps_share() 77 RC_CHK_ACCESS(thread__maps(other_leader))); in test__thread_maps_share()
|
H A D | hists_link.c | 151 if (RC_CHK_ACCESS(samples->thread) == RC_CHK_ACCESS(t) && in find_sample() 152 RC_CHK_ACCESS(samples->map) == RC_CHK_ACCESS(m) && in find_sample()
|
/openbmc/linux/tools/lib/perf/ |
H A D | cpumap.c | 15 RC_CHK_ACCESS(map)->nr = nr_cpus; in perf_cpu_map__set_nr() 35 RC_CHK_ACCESS(cpus)->map[0].cpu = -1; in perf_cpu_map__dummy_new() 83 RC_CHK_ACCESS(cpus)->map[i].cpu = i; in cpu_map__default_new() 104 return RC_CHK_ACCESS(cpus)->map[idx]; in __perf_cpu_map__cpu() 114 memcpy(RC_CHK_ACCESS(cpus)->map, tmp_cpus, payload_size); in cpu_map__trim_new() 115 qsort(RC_CHK_ACCESS(cpus)->map, nr_cpus, sizeof(struct perf_cpu), cmp_cpu); in cpu_map__trim_new() 122 RC_CHK_ACCESS(cpus)->map[j++].cpu = in cpu_map__trim_new() 283 return RC_CHK_ACCESS(cpus)->nr; in __perf_cpu_map__nr()
|
/openbmc/linux/tools/lib/perf/include/internal/ |
H A D | rc_check.h | 46 #define RC_CHK_ACCESS(object) object macro 83 #define RC_CHK_ACCESS(object) object->orig macro
|
H A D | cpumap.h | 36 return &RC_CHK_ACCESS(map)->refcnt; in perf_cpu_map__refcnt()
|
/openbmc/linux/tools/perf/arch/arm64/util/ |
H A D | header.c | 35 sysfs, RC_CHK_ACCESS(cpus)->map[cpu].cpu); in _get_cpuid()
|
/openbmc/linux/tools/perf/ui/ |
H A D | hist.c | 278 if ((a->thread == NULL ? NULL : RC_CHK_ACCESS(a->thread)) != in __hpp__sort_acc() 279 (b->thread == NULL ? NULL : RC_CHK_ACCESS(b->thread)) || in __hpp__sort_acc()
|
/openbmc/linux/tools/perf/ |
H A D | builtin-sched.c | 1388 if (RC_CHK_ACCESS(l->thread) == RC_CHK_ACCESS(r->thread)) in pid_cmp() 1396 return (int)(RC_CHK_ACCESS(l->thread) - RC_CHK_ACCESS(r->thread)); in pid_cmp()
|