Home
last modified time | relevance | path

Searched refs:refcount_read (Results 1 – 15 of 15) sorted by relevance

/tools/perf/tests/
A Dthread-maps-share.c46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 4); in test__thread_maps_share()
74 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 2); in test__thread_maps_share()
80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 3); in test__thread_maps_share()
83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 2); in test__thread_maps_share()
86 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 1); in test__thread_maps_share()
92 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 1); in test__thread_maps_share()
A Dthread-map.c43 refcount_read(&map->refcnt) == 1); in test__thread_map()
58 refcount_read(&map->refcnt) == 1); in test__thread_map()
85 refcount_read(&threads->refcnt) == 1); in process_event()
A Dmaps.c30 refcount_read(map__refcnt(map)) != 1) { in check_maps_cb()
43 refcount_read(map__refcnt(map))); in failed_cb()
A Dcpumap.c71 TEST_ASSERT_VAL("wrong refcnt", refcount_read(perf_cpu_map__refcnt(map)) == 1); in process_event_cpus()
97 TEST_ASSERT_VAL("wrong refcnt", refcount_read(perf_cpu_map__refcnt(map)) == 1); in process_event_range_cpus()
177 refcount_read(perf_cpu_map__refcnt(a)) == 1); in __test__cpu_map_merge()
/tools/lib/perf/
A Dmmap.c77 BUG_ON(map->base && refcount_read(&map->refcnt) == 0); in perf_mmap__put()
108 if (refcount_read(&map->refcnt) == 1 && perf_mmap__empty(map)) in perf_mmap__consume()
186 if (!refcount_read(&map->refcnt)) in perf_mmap__read_init()
203 if (!refcount_read(&map->refcnt)) in perf_mmap__read_done()
279 if (!refcount_read(&map->refcnt)) in perf_mmap__read_event()
A Dthreadmap.c72 WARN_ONCE(refcount_read(&threads->refcnt) != 0, in perf_thread_map__delete()
A Dcpumap.c52 WARN_ONCE(refcount_read(perf_cpu_map__refcnt(map)) != 0, in cpu_map__delete()
/tools/include/linux/
A Drefcount.h68 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() function
/tools/perf/util/
A Dcomm.c72 if (refcount_read(comm_str__refcnt(cs)) == 1) in comm_str__put()
109 if (refcount_read(comm_str__refcnt(cs)) == 1) { in comm_strs__remove_if_last()
A Dnamespaces.c220 WARN_ONCE(refcount_read(nsinfo__refcnt(nsi)) != 0, "nsinfo refcnt unbalanced\n"); in nsinfo__delete()
A Dmaps.c77 assert(refcount_read(map__refcnt(map)) > 0); in check_invariants()
110 assert(refcount_read(map__refcnt(map)) > 1); in check_invariants()
A Dmap.c297 BUG_ON(refcount_read(map__refcnt(map)) != 0); in map__exit()
A Ddso.c1627 if (dso && dso__data(dso) && refcount_read(&RC_CHK_ACCESS(dso)->refcnt) == 2) in dso__put()
/tools/testing/vma/
A Dvma_internal.h613 WARN_ON_ONCE(!refcount_read(&vma->vm_refcnt)); in vma_assert_attached()
618 WARN_ON_ONCE(refcount_read(&vma->vm_refcnt)); in vma_assert_detached()
/tools/testing/selftests/bpf/test_kmods/
A Dbpf_testmod.c1586 while (refcount_read(&prog_test_struct.cnt) > 1) in bpf_testmod_exit()

Completed in 32 milliseconds