Lines Matching full:maps
7 #include "maps.h"
48 static int check_maps(struct map_def *merged, unsigned int size, struct maps *maps)
52 if (maps__nr_maps(maps) != size) {
53 pr_debug("Expected %d maps, got %d", size, maps__nr_maps(maps));
60 failed = maps__for_each_map(maps, check_maps_cb, &args);
69 maps__for_each_map(maps, failed_cb, NULL);
103 struct maps *maps = maps__new(NULL);
105 TEST_ASSERT_VAL("failed to create maps", maps);
115 TEST_ASSERT_VAL("failed to insert map", maps__insert(maps, map) == 0);
128 /* kcore1 map overlaps over all bpf maps */
140 ret = maps__merge_in(maps, map_kcore1);
143 ret = check_maps(merged12, ARRAY_SIZE(merged12), maps);
146 ret = maps__merge_in(maps, map_kcore2);
149 ret = check_maps(merged12, ARRAY_SIZE(merged12), maps);
152 ret = maps__merge_in(maps, map_kcore3);
155 ret = check_maps(merged3, ARRAY_SIZE(merged3), maps);
158 maps__zput(maps);