Home
last modified time | relevance | path

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

12

/tools/perf/tests/
Dthread-mg-share.c46 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()
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()
Dmap_groups.c26 TEST_ASSERT_VAL("wrong map refcnt", refcount_read(&map->refcnt) == 2); in check_maps()
Dcpumap.c72 TEST_ASSERT_VAL("wrong refcnt", refcount_read(&map->refcnt) == 1); in process_event_cpus()
/tools/perf/lib/
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()
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()
79 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()
Dcgroup.c115 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()
Dnamespaces.c150 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()
Dmmap.c93 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()
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()
284 refcount_set(&threads->refcnt, 1); in thread_map__new_by_tid_str()
383 refcount_set(&threads->refcnt, 1); in thread_map__copy_event()
Dcgroup.h12 refcount_t refcnt; member
Dmap_groups.h33 refcount_t refcnt; member
55 refcount_inc(&mg->refcnt); in map_groups__get()
Dnamespaces.h37 refcount_t refcnt; member
Dmap.h46 refcount_t refcnt; member
124 refcount_inc(&map->refcnt); in map__get()
Dmem-events.h25 refcount_t refcnt; member
Dthread.c66 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()
Dthread.h33 refcount_t refcnt; member
Dmap.c144 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()
Dcpumap.c92 refcount_set(&cpus->refcnt, 1); in perf_cpu_map__empty_new()
158 refcount_set(&c->refcnt, 1); in cpu_map__build_map()
Ddso.h200 refcount_t refcnt; member
/tools/perf/lib/include/internal/
Dcpumap.h8 refcount_t refcnt; member
Dthreadmap.h15 refcount_t refcnt; member
Dmmap.h23 refcount_t refcnt; member
/tools/include/uapi/linux/
Dpkt_cls.h90 int refcnt; member
103 int refcnt; member
111 int refcnt; \

12