Searched refs:maps__refcnt (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/tools/perf/tests/ |
H A D | thread-maps-share.c | 46 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 D | maps.h | 109 static inline refcount_t *maps__refcnt(struct maps *maps) in maps__refcnt() function
|
H A D | maps.c | 15 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()
|