map_replace 672 tools/bpf/bpftool/prog.c const struct map_replace *a = p1, *b = p2; map_replace 1099 tools/bpf/bpftool/prog.c struct map_replace *map_replace = NULL; map_replace 1181 tools/bpf/bpftool/prog.c new_map_replace = reallocarray(map_replace, map_replace 1183 tools/bpf/bpftool/prog.c sizeof(*map_replace)); map_replace 1188 tools/bpf/bpftool/prog.c map_replace = new_map_replace; map_replace 1190 tools/bpf/bpftool/prog.c map_replace[old_map_fds].idx = idx; map_replace 1191 tools/bpf/bpftool/prog.c map_replace[old_map_fds].name = name; map_replace 1192 tools/bpf/bpftool/prog.c map_replace[old_map_fds].fd = fd; map_replace 1250 tools/bpf/bpftool/prog.c qsort(map_replace, old_map_fds, sizeof(*map_replace), map_replace 1257 tools/bpf/bpftool/prog.c while (j < old_map_fds && map_replace[j].name) { map_replace 1260 tools/bpf/bpftool/prog.c if (!strcmp(bpf_map__name(map), map_replace[j].name)) { map_replace 1261 tools/bpf/bpftool/prog.c map_replace[j].idx = i; map_replace 1266 tools/bpf/bpftool/prog.c if (map_replace[j].idx == -1) { map_replace 1267 tools/bpf/bpftool/prog.c p_err("unable to find map '%s'", map_replace[j].name); map_replace 1274 tools/bpf/bpftool/prog.c qsort(map_replace, old_map_fds, sizeof(*map_replace), map_replace 1284 tools/bpf/bpftool/prog.c if (j < old_map_fds && idx == map_replace[j].idx) { map_replace 1285 tools/bpf/bpftool/prog.c err = bpf_map__reuse_fd(map, map_replace[j++].fd); map_replace 1292 tools/bpf/bpftool/prog.c if (j < old_map_fds && map_replace[j].idx == idx) { map_replace 1302 tools/bpf/bpftool/prog.c p_err("map idx '%d' not used", map_replace[j].idx); map_replace 1355 tools/bpf/bpftool/prog.c close(map_replace[i].fd); map_replace 1356 tools/bpf/bpftool/prog.c free(map_replace); map_replace 1369 tools/bpf/bpftool/prog.c close(map_replace[i].fd); map_replace 1370 tools/bpf/bpftool/prog.c free(map_replace);