Home
last modified time | relevance | path

Searched refs:maps__refcnt (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/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()
/linux-6.12.1/tools/perf/util/
Dmaps.h47 refcount_t *maps__refcnt(struct maps *maps); /* Test only. */
Dmaps.c180 refcount_t *maps__refcnt(struct maps *maps) in maps__refcnt() function
222 refcount_set(maps__refcnt(maps), 1); in maps__init()
267 refcount_inc(maps__refcnt(maps)); in maps__get()
274 if (maps && refcount_dec_and_test(maps__refcnt(maps))) in maps__put()