/tools/perf/tests/ |
D | thread-mg-share.c | 46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 4); in test__thread_mg_share() 74 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&other_mg->refcnt), 2); in test__thread_mg_share() 80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 3); in test__thread_mg_share() 83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 2); in test__thread_mg_share() 86 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&mg->refcnt), 1); in test__thread_mg_share() 92 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&other_mg->refcnt), 1); in test__thread_mg_share()
|
D | thread-map.c | 42 refcount_read(&map->refcnt) == 1); in test__thread_map() 57 refcount_read(&map->refcnt) == 1); in test__thread_map() 84 refcount_read(&threads->refcnt) == 1); in process_event()
|
D | map_groups.c | 26 TEST_ASSERT_VAL("wrong map refcnt", refcount_read(&map->refcnt) == 2); in check_maps()
|
D | cpumap.c | 72 TEST_ASSERT_VAL("wrong refcnt", refcount_read(&map->refcnt) == 1); in process_event_cpus()
|
/tools/perf/lib/ |
D | threadmap.c | 52 refcount_set(&threads->refcnt, 1); in perf_thread_map__new_dummy() 62 WARN_ONCE(refcount_read(&threads->refcnt) != 0, in perf_thread_map__delete() 73 refcount_inc(&map->refcnt); in perf_thread_map__get() 79 if (map && refcount_dec_and_test(&map->refcnt)) in perf_thread_map__put()
|
D | cpumap.c | 20 refcount_set(&cpus->refcnt, 1); in perf_cpu_map__dummy_new() 29 WARN_ONCE(refcount_read(&map->refcnt) != 0, in cpu_map__delete() 38 refcount_inc(&map->refcnt); in perf_cpu_map__get() 44 if (map && refcount_dec_and_test(&map->refcnt)) in perf_cpu_map__put() 65 refcount_set(&cpus->refcnt, 1); in cpu_map__default_new() 79 refcount_set(&cpus->refcnt, 1); in cpu_map__trim_new()
|
/tools/perf/util/ |
D | comm.c | 15 refcount_t refcnt; member 24 if (cs && refcount_inc_not_zero(&cs->refcnt)) in comm_str__get() 32 if (cs && refcount_dec_and_test(&cs->refcnt)) { in comm_str__put() 55 refcount_set(&cs->refcnt, 1); in comm_str__alloc()
|
D | cgroup.c | 115 refcount_set(&cgroup->refcnt, 1); in cgroup__new() 176 if (cgrp && refcount_dec_and_test(&cgrp->refcnt)) { in cgroup__put() 184 refcount_inc(&cgroup->refcnt); in cgroup__get() 246 refcount_inc(&cgrp->refcnt); in parse_cgroups()
|
D | namespaces.c | 150 refcount_set(&nsi->refcnt, 1); in nsinfo__new() 176 refcount_set(&nnsi->refcnt, 1); in nsinfo__copy() 191 refcount_inc(&nsi->refcnt); in nsinfo__get() 197 if (nsi && refcount_dec_and_test(&nsi->refcnt)) in nsinfo__put()
|
D | mmap.c | 93 if (!refcount_read(&map->core.refcnt)) in perf_mmap__read_event() 115 refcount_inc(&map->core.refcnt); in perf_mmap__get() 120 BUG_ON(map->core.base && refcount_read(&map->core.refcnt) == 0); in perf_mmap__put() 122 if (refcount_dec_and_test(&map->core.refcnt)) in perf_mmap__put() 134 if (refcount_read(&map->core.refcnt) == 1 && perf_mmap__empty(map)) in perf_mmap__consume() 325 refcount_set(&map->core.refcnt, 0); in perf_mmap__munmap() 371 refcount_set(&map->core.refcnt, 2); in perf_mmap__mmap() 483 if (!refcount_read(&map->core.refcnt)) in perf_mmap__read_init() 541 if (!refcount_read(&map->core.refcnt)) in perf_mmap__read_done()
|
D | thread_map.c | 51 refcount_set(&threads->refcnt, 1); in thread_map__new_by_pid() 68 refcount_set(&threads->refcnt, 1); in thread_map__new_by_tid() 90 refcount_set(&threads->refcnt, 1); in __thread_map__new_all_cpus() 230 refcount_set(&threads->refcnt, 1); in thread_map__new_by_pid_str() 284 refcount_set(&threads->refcnt, 1); in thread_map__new_by_tid_str() 383 refcount_set(&threads->refcnt, 1); in thread_map__copy_event()
|
D | cgroup.h | 12 refcount_t refcnt; member
|
D | map_groups.h | 33 refcount_t refcnt; member 55 refcount_inc(&mg->refcnt); in map_groups__get()
|
D | namespaces.h | 37 refcount_t refcnt; member
|
D | map.h | 46 refcount_t refcnt; member 124 refcount_inc(&map->refcnt); in map__get()
|
D | mem-events.h | 25 refcount_t refcnt; member
|
D | thread.c | 66 refcount_set(&thread->refcnt, 1); in thread__new() 119 refcount_inc(&thread->refcnt); in thread__get() 125 if (thread && refcount_dec_and_test(&thread->refcnt)) { in thread__put()
|
D | thread.h | 33 refcount_t refcnt; member
|
D | map.c | 144 refcount_set(&map->refcnt, 1); in map__init() 302 if (map && refcount_dec_and_test(&map->refcnt)) in map__put() 394 refcount_set(&map->refcnt, 1); in map__clone() 585 refcount_set(&mg->refcnt, 1); in map_groups__init() 659 if (mg && refcount_dec_and_test(&mg->refcnt)) in map_groups__put()
|
D | cpumap.c | 92 refcount_set(&cpus->refcnt, 1); in perf_cpu_map__empty_new() 158 refcount_set(&c->refcnt, 1); in cpu_map__build_map()
|
D | dso.h | 200 refcount_t refcnt; member
|
/tools/perf/lib/include/internal/ |
D | cpumap.h | 8 refcount_t refcnt; member
|
D | threadmap.h | 15 refcount_t refcnt; member
|
D | mmap.h | 23 refcount_t refcnt; member
|
/tools/include/uapi/linux/ |
D | pkt_cls.h | 90 int refcnt; member 103 int refcnt; member 111 int refcnt; \
|