Home
last modified time | relevance | path

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

/tools/perf/tests/
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()
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()
Dmaps.c30 refcount_read(map__refcnt(map)) != 1) { in check_maps_cb()
43 refcount_read(map__refcnt(map))); in failed_cb()
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()
/tools/lib/perf/
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()
Dthreadmap.c72 WARN_ONCE(refcount_read(&threads->refcnt) != 0, in perf_thread_map__delete()
Dcpumap.c48 WARN_ONCE(refcount_read(perf_cpu_map__refcnt(map)) != 0, in cpu_map__delete()
/tools/include/linux/
Drefcount.h68 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() function
/tools/perf/util/
Dcomm.c71 if (refcount_read(comm_str__refcnt(cs)) == 1) in comm_str__put()
108 if (refcount_read(comm_str__refcnt(cs)) == 1) { in comm_strs__remove_if_last()
Dnamespaces.c220 WARN_ONCE(refcount_read(nsinfo__refcnt(nsi)) != 0, "nsinfo refcnt unbalanced\n"); in nsinfo__delete()
Dmaps.c77 assert(refcount_read(map__refcnt(map)) > 0); in check_invariants()
110 assert(refcount_read(map__refcnt(map)) > 1); in check_invariants()
Dmap.c298 BUG_ON(refcount_read(map__refcnt(map)) != 0); in map__exit()
/tools/testing/vma/
Dvma_internal.h400 WARN_ON_ONCE(!refcount_read(&vma->vm_refcnt)); in vma_assert_attached()
405 WARN_ON_ONCE(refcount_read(&vma->vm_refcnt)); in vma_assert_detached()
/tools/testing/selftests/bpf/bpf_testmod/
Dbpf_testmod.c1370 while (refcount_read(&prog_test_struct.cnt) > 1) in bpf_testmod_exit()