Home
last modified time | relevance | path

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

/tools/perf/tests/
Dthread-mg-share.c46 TEST_ASSERT_VAL("wrong refcnt", mg->refcnt == 4); in test__thread_mg_share()
62 TEST_ASSERT_VAL("wrong refcnt", other_mg->refcnt == 2); in test__thread_mg_share()
68 TEST_ASSERT_VAL("wrong refcnt", mg->refcnt == 3); in test__thread_mg_share()
71 TEST_ASSERT_VAL("wrong refcnt", mg->refcnt == 2); in test__thread_mg_share()
74 TEST_ASSERT_VAL("wrong refcnt", mg->refcnt == 1); in test__thread_mg_share()
80 TEST_ASSERT_VAL("wrong refcnt", other_mg->refcnt == 1); in test__thread_mg_share()
/tools/perf/util/
Dcgroup.c118 if (cgrp->refcnt == 0) in add_cgroup()
123 cgrp->refcnt++; in add_cgroup()
134 if (--cgrp->refcnt == 0) { in close_cgroup()
Dcgroup.h9 int refcnt; member
Dmap.h64 int refcnt; member
73 ++mg->refcnt; in map_groups__get()
Devlist.c686 ++evlist->mmap[idx].refcnt; in perf_evlist__mmap_get()
691 BUG_ON(evlist->mmap[idx].refcnt == 0); in perf_evlist__mmap_put()
693 if (--evlist->mmap[idx].refcnt == 0) in perf_evlist__mmap_put()
707 if (md->refcnt == 1 && perf_mmap__empty(md)) in perf_evlist__mmap_consume()
716 evlist->mmap[idx].refcnt = 0; in __perf_evlist__munmap()
763 evlist->mmap[idx].refcnt = 2; in __perf_evlist__mmap()
Devlist.h29 int refcnt; member
Dmap.c424 mg->refcnt = 1; in map_groups__init()
492 if (--mg->refcnt == 0) in map_groups__put()