Lines Matching full:maps
7 #include "maps.h"
17 static int check_maps(struct map_def *merged, unsigned int size, struct maps *maps) in check_maps() argument
23 if (maps__nr_maps(maps) != size) { in check_maps()
24 pr_debug("Expected %d maps, got %d", size, maps__nr_maps(maps)); in check_maps()
27 maps__for_each_entry(maps, rb_node) { in check_maps()
46 maps__for_each_entry(maps, rb_node) { in check_maps()
88 struct maps *maps = maps__new(NULL); in test__maps__merge_in() local
90 TEST_ASSERT_VAL("failed to create maps", maps); in test__maps__merge_in()
100 TEST_ASSERT_VAL("failed to insert map", maps__insert(maps, map) == 0); in test__maps__merge_in()
113 /* kcore1 map overlaps over all bpf maps */ in test__maps__merge_in()
125 ret = maps__merge_in(maps, map_kcore1); in test__maps__merge_in()
128 ret = check_maps(merged12, ARRAY_SIZE(merged12), maps); in test__maps__merge_in()
131 ret = maps__merge_in(maps, map_kcore2); in test__maps__merge_in()
134 ret = check_maps(merged12, ARRAY_SIZE(merged12), maps); in test__maps__merge_in()
137 ret = maps__merge_in(maps, map_kcore3); in test__maps__merge_in()
140 ret = check_maps(merged3, ARRAY_SIZE(merged3), maps); in test__maps__merge_in()
143 maps__zput(maps); in test__maps__merge_in()