Home
last modified time | relevance | path

Searched refs:refcnt (Results 1 – 25 of 34) sorted by relevance

12

/tools/perf/tests/
Dthread-maps-share.c46 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()
Dthread-map.c42 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()
Dmaps.c28 TEST_ASSERT_VAL("wrong map refcnt", refcount_read(&map->refcnt) == 1); in check_maps()
/tools/lib/perf/
Dthreadmap.c52 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()
Dmmap.c24 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()
Dcpumap.c20 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/
Dcomm.c15 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()
Dthread_map.c51 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()
Dnamespaces.c156 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()
Dmaps.h34 refcount_t refcnt; member
58 refcount_inc(&maps->refcnt); in maps__get()
Dcgroup.h17 refcount_t refcnt; member
Dcgroup.c114 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()
Dnamespaces.h39 refcount_t refcnt; member
Dmap.h37 refcount_t refcnt; member
119 refcount_inc(&map->refcnt); in map__get()
Dblock-info.h22 refcount_t refcnt; member
Dcpumap.h19 refcount_t refcnt; member
Dmem-events.h26 refcount_t refcnt; member
Dmap.c127 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()
Dthread.c67 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()
Dblock-info.c49 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/
Dcpumap.h8 refcount_t refcnt; member
Dthreadmap.h15 refcount_t refcnt; member
Dmmap.h28 refcount_t refcnt; member
/tools/testing/selftests/bpf/progs/
Dbpf_iter_bpf_map.c23 BPF_SEQ_PRINTF(seq, "%8u %8ld %8ld %10lu\n", map->id, map->refcnt.counter, in dump_bpf_map()
/tools/include/uapi/linux/
Dpkt_cls.h90 int refcnt; member
103 int refcnt; member
111 int refcnt; \

12