Lines Matching full:maps
6 #include "maps.h"
16 static int check_maps(struct map_def *merged, unsigned int size, struct maps *maps) in check_maps() argument
21 maps__for_each_entry(maps, map) { in check_maps()
23 TEST_ASSERT_VAL("less maps expected", (map && i < size) || (!map && i == size)); in check_maps()
38 struct maps maps; in test__maps__merge_in() local
67 maps__init(&maps, NULL); in test__maps__merge_in()
77 maps__insert(&maps, map); in test__maps__merge_in()
90 /* kcore1 map overlaps over all bpf maps */ in test__maps__merge_in()
102 ret = maps__merge_in(&maps, map_kcore1); in test__maps__merge_in()
105 ret = check_maps(merged12, ARRAY_SIZE(merged12), &maps); in test__maps__merge_in()
108 ret = maps__merge_in(&maps, map_kcore2); in test__maps__merge_in()
111 ret = check_maps(merged12, ARRAY_SIZE(merged12), &maps); in test__maps__merge_in()
114 ret = maps__merge_in(&maps, map_kcore3); in test__maps__merge_in()
117 ret = check_maps(merged3, ARRAY_SIZE(merged3), &maps); in test__maps__merge_in()