Home
last modified time | relevance | path

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

/openbmc/linux/tools/perf/tests/
H 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()
81 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 3); in test__thread_maps_share()
84 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 2); in test__thread_maps_share()
87 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 1); in test__thread_maps_share()
93 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 1); in test__thread_maps_share()
/openbmc/linux/tools/perf/util/
H A Dmaps.h109 static inline refcount_t *maps__refcnt(struct maps *maps) in maps__refcnt() function
H A Dmaps.c15 refcount_set(maps__refcnt(maps), 1); in maps__init()
186 refcount_inc(maps__refcnt(maps)); in maps__get()
193 if (maps && refcount_dec_and_test(maps__refcnt(maps))) in maps__put()