Home
last modified time | relevance | path

Searched refs:map_fds (Results 1 – 3 of 3) sorted by relevance

/external/iproute2/lib/
Dbpf.c1095 int map_fds[ELF_MAX_MAPS]; member
1525 if (ctx->map_fds[i] < 0) in bpf_find_map_id()
1528 return ctx->map_fds[i]; in bpf_find_map_id()
1663 ctx->map_fds[i] = !fd ? -1 : fd; in bpf_maps_attach_all()
1667 if (ctx->map_fds[i] >= 0) in bpf_maps_attach_all()
1679 ctx->map_fds[i] = fd; in bpf_maps_attach_all()
1688 inner_fd = ctx->map_fds[i]; in bpf_maps_attach_all()
1697 ret = bpf_map_update(ctx->map_fds[j], &inner_idx, in bpf_maps_attach_all()
1700 bpf_report_map_in_map(ctx->map_fds[j], in bpf_maps_attach_all()
2022 if (rmap >= ARRAY_SIZE(ctx->map_fds)) in bpf_apply_relo_data()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_progs.c425 int prog_fds[nr_iters], map_fds[nr_iters]; in test_bpf_obj_id() local
466 map_fds[i] = bpf_find_map(__func__, objs[i], "test_map_id"); in test_bpf_obj_id()
467 assert(map_fds[i] >= 0); in test_bpf_obj_id()
468 err = bpf_map_update_elem(map_fds[i], &array_key, in test_bpf_obj_id()
475 err = bpf_obj_get_info_by_fd(map_fds[i], &map_infos[i], in test_bpf_obj_id()
Dtest_verifier.c14069 struct bpf_insn *prog, int *map_fds) in do_test_fixup() argument
14093 map_fds[0] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), in do_test_fixup()
14096 prog[*fixup_map_hash_8b].imm = map_fds[0]; in do_test_fixup()
14102 map_fds[1] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), in do_test_fixup()
14105 prog[*fixup_map_hash_48b].imm = map_fds[1]; in do_test_fixup()
14111 map_fds[2] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), in do_test_fixup()
14114 prog[*fixup_map_hash_16b].imm = map_fds[2]; in do_test_fixup()
14120 map_fds[3] = create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in do_test_fixup()
14123 prog[*fixup_map_array_48b].imm = map_fds[3]; in do_test_fixup()
14129 map_fds[4] = create_prog_array(prog_type, 4, 0); in do_test_fixup()
[all …]