/tools/perf/tests/ |
D | thread-maps-share.c | 46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 4); in test__thread_maps_share() 74 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&other_maps->refcnt), 2); in test__thread_maps_share() 80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 3); in test__thread_maps_share() 83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 2); in test__thread_maps_share() 86 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 1); in test__thread_maps_share() 92 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&other_maps->refcnt), 1); in test__thread_maps_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 | maps.c | 28 TEST_ASSERT_VAL("wrong map refcnt", refcount_read(&map->refcnt) == 1); in check_maps()
|
/tools/lib/perf/ |
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 | mmap.c | 24 refcount_set(&map->refcnt, 0); in perf_mmap__init() 57 refcount_set(&map->refcnt, 0); in perf_mmap__munmap() 65 refcount_inc(&map->refcnt); in perf_mmap__get() 70 BUG_ON(map->base && refcount_read(&map->refcnt) == 0); in perf_mmap__put() 72 if (refcount_dec_and_test(&map->refcnt)) in perf_mmap__put() 101 if (refcount_read(&map->refcnt) == 1 && perf_mmap__empty(map)) in perf_mmap__consume() 179 if (!refcount_read(&map->refcnt)) in perf_mmap__read_init() 196 if (!refcount_read(&map->refcnt)) in perf_mmap__read_done() 264 if (!refcount_read(&map->refcnt)) in perf_mmap__read_event()
|
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() 98 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 | 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() 283 refcount_set(&threads->refcnt, 1); in thread_map__new_by_tid_str() 383 refcount_set(&threads->refcnt, 1); in thread_map__copy_event()
|
D | namespaces.c | 156 refcount_set(&nsi->refcnt, 1); in nsinfo__new() 183 refcount_set(&nnsi->refcnt, 1); in nsinfo__copy() 198 refcount_inc(&nsi->refcnt); in nsinfo__get() 204 if (nsi && refcount_dec_and_test(&nsi->refcnt)) in nsinfo__put()
|
D | maps.h | 34 refcount_t refcnt; member 58 refcount_inc(&maps->refcnt); in maps__get()
|
D | cgroup.h | 17 refcount_t refcnt; member
|
D | cgroup.c | 114 refcount_set(&cgroup->refcnt, 1); in cgroup__new() 181 if (cgrp && refcount_dec_and_test(&cgrp->refcnt)) { in cgroup__put() 189 refcount_inc(&cgroup->refcnt); in cgroup__get() 395 refcount_inc(&cgrp->refcnt); in parse_cgroups() 547 refcount_set(&cgrp->refcnt, 1); in __cgroup__findnew()
|
D | namespaces.h | 39 refcount_t refcnt; member
|
D | map.h | 37 refcount_t refcnt; member 119 refcount_inc(&map->refcnt); in map__get()
|
D | block-info.h | 22 refcount_t refcnt; member
|
D | cpumap.h | 19 refcount_t refcnt; member
|
D | mem-events.h | 26 refcount_t refcnt; member
|
D | map.c | 127 refcount_set(&map->refcnt, 1); in map__init() 286 BUG_ON(refcount_read(&map->refcnt) != 0); in map__exit() 298 if (map && refcount_dec_and_test(&map->refcnt)) in map__put() 393 refcount_set(&map->refcnt, 1); in map__clone() 535 refcount_set(&maps->refcnt, 1); in maps__init() 647 if (maps && refcount_dec_and_test(&maps->refcnt)) in maps__put()
|
D | thread.c | 67 refcount_set(&thread->refcnt, 1); in thread__new() 121 refcount_inc(&thread->refcnt); in thread__get() 127 if (thread && refcount_dec_and_test(&thread->refcnt)) { in thread__put()
|
D | block-info.c | 49 refcount_inc(&bi->refcnt); in block_info__get() 55 if (bi && refcount_dec_and_test(&bi->refcnt)) in block_info__put() 64 refcount_set(&bi->refcnt, 1); in block_info__new()
|
/tools/lib/perf/include/internal/ |
D | cpumap.h | 8 refcount_t refcnt; member
|
D | threadmap.h | 15 refcount_t refcnt; member
|
D | mmap.h | 28 refcount_t refcnt; member
|
/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_bpf_map.c | 23 BPF_SEQ_PRINTF(seq, "%8u %8ld %8ld %10lu\n", map->id, map->refcnt.counter, in dump_bpf_map()
|
/tools/include/uapi/linux/ |
D | pkt_cls.h | 90 int refcnt; member 103 int refcnt; member 111 int refcnt; \
|