Searched refs:maps__refcnt (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/tools/perf/tests/ |
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() 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/ |
D | maps.h | 47 refcount_t *maps__refcnt(struct maps *maps); /* Test only. */
|
D | maps.c | 180 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()
|