Searched refs:maps__refcnt (Results 1 - 3 of 3) sorted by relevance
/linux-master/tools/perf/tests/ |
H A D | thread-maps-share.c | 46 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 D | maps.h | 47 refcount_t *maps__refcnt(struct maps *maps); /* Test only. */
|
H A D | maps.c | 185 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