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

/linux-master/tools/perf/tests/
H A Dthread-maps-share.c46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 4);
74 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 2);
80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 3);
83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 2);
86 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 1);
92 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 1);
/linux-master/tools/perf/util/
H A Dmaps.h47 refcount_t *maps__refcnt(struct maps *maps); /* Test only. */
H A Dmaps.c185 refcount_t *maps__refcnt(struct maps *maps) function
232 refcount_set(maps__refcnt(maps), 1);
277 refcount_inc(maps__refcnt(maps));
284 if (maps && refcount_dec_and_test(maps__refcnt(maps)))

Completed in 112 milliseconds