Lines Matching refs:maps
48 static int check_maps(struct map_def *merged, unsigned int size, struct maps *maps) in check_maps() argument
52 if (maps__nr_maps(maps) != size) { in check_maps()
53 pr_debug("Expected %d maps, got %d", size, maps__nr_maps(maps)); in check_maps()
60 failed = maps__for_each_map(maps, check_maps_cb, &args); in check_maps()
69 maps__for_each_map(maps, failed_cb, NULL); in check_maps()
103 struct maps *maps = maps__new(NULL); in test__maps__merge_in() local
105 TEST_ASSERT_VAL("failed to create maps", maps); in test__maps__merge_in()
115 TEST_ASSERT_VAL("failed to insert map", maps__insert(maps, map) == 0); in test__maps__merge_in()
140 ret = maps__merge_in(maps, map_kcore1); in test__maps__merge_in()
143 ret = check_maps(merged12, ARRAY_SIZE(merged12), maps); in test__maps__merge_in()
146 ret = maps__merge_in(maps, map_kcore2); in test__maps__merge_in()
149 ret = check_maps(merged12, ARRAY_SIZE(merged12), maps); in test__maps__merge_in()
152 ret = maps__merge_in(maps, map_kcore3); in test__maps__merge_in()
155 ret = check_maps(merged3, ARRAY_SIZE(merged3), maps); in test__maps__merge_in()
158 maps__zput(maps); in test__maps__merge_in()