map_fds 15 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c int prog_fds[nr_iters], map_fds[nr_iters]; map_fds 55 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c map_fds[i] = bpf_find_map(__func__, objs[i], "test_map_id"); map_fds 56 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c if (CHECK_FAIL(map_fds[i] < 0)) map_fds 58 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c err = bpf_map_update_elem(map_fds[i], &array_key, map_fds 66 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c err = bpf_obj_get_info_by_fd(map_fds[i], &map_infos[i], map_fds 618 tools/testing/selftests/bpf/test_verifier.c struct bpf_insn *prog, int *map_fds) map_fds 650 tools/testing/selftests/bpf/test_verifier.c map_fds[0] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), map_fds 653 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_hash_8b].imm = map_fds[0]; map_fds 659 tools/testing/selftests/bpf/test_verifier.c map_fds[1] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), map_fds 662 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_hash_48b].imm = map_fds[1]; map_fds 668 tools/testing/selftests/bpf/test_verifier.c map_fds[2] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), map_fds 671 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_hash_16b].imm = map_fds[2]; map_fds 677 tools/testing/selftests/bpf/test_verifier.c map_fds[3] = create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), map_fds 679 tools/testing/selftests/bpf/test_verifier.c update_map(map_fds[3], 0); map_fds 681 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_array_48b].imm = map_fds[3]; map_fds 687 tools/testing/selftests/bpf/test_verifier.c map_fds[4] = create_prog_array(prog_type, 4, 0); map_fds 689 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_prog1].imm = map_fds[4]; map_fds 695 tools/testing/selftests/bpf/test_verifier.c map_fds[5] = create_prog_array(prog_type, 8, 7); map_fds 697 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_prog2].imm = map_fds[5]; map_fds 703 tools/testing/selftests/bpf/test_verifier.c map_fds[6] = create_map_in_map(); map_fds 705 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_in_map].imm = map_fds[6]; map_fds 711 tools/testing/selftests/bpf/test_verifier.c map_fds[7] = create_cgroup_storage(false); map_fds 713 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_cgroup_storage].imm = map_fds[7]; map_fds 719 tools/testing/selftests/bpf/test_verifier.c map_fds[8] = create_cgroup_storage(true); map_fds 721 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_percpu_cgroup_storage].imm = map_fds[8]; map_fds 726 tools/testing/selftests/bpf/test_verifier.c map_fds[9] = create_map(BPF_MAP_TYPE_SOCKMAP, sizeof(int), map_fds 729 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_sockmap].imm = map_fds[9]; map_fds 734 tools/testing/selftests/bpf/test_verifier.c map_fds[10] = create_map(BPF_MAP_TYPE_SOCKHASH, sizeof(int), map_fds 737 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_sockhash].imm = map_fds[10]; map_fds 742 tools/testing/selftests/bpf/test_verifier.c map_fds[11] = create_map(BPF_MAP_TYPE_XSKMAP, sizeof(int), map_fds 745 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_xskmap].imm = map_fds[11]; map_fds 750 tools/testing/selftests/bpf/test_verifier.c map_fds[12] = create_map(BPF_MAP_TYPE_STACK_TRACE, sizeof(u32), map_fds 753 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_stacktrace].imm = map_fds[12]; map_fds 758 tools/testing/selftests/bpf/test_verifier.c map_fds[13] = create_map_spin_lock(); map_fds 760 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_spin_lock].imm = map_fds[13]; map_fds 765 tools/testing/selftests/bpf/test_verifier.c map_fds[14] = __create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), map_fds 768 tools/testing/selftests/bpf/test_verifier.c update_map(map_fds[14], 0); map_fds 770 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_array_ro].imm = map_fds[14]; map_fds 775 tools/testing/selftests/bpf/test_verifier.c map_fds[15] = __create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), map_fds 778 tools/testing/selftests/bpf/test_verifier.c update_map(map_fds[15], 0); map_fds 780 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_array_wo].imm = map_fds[15]; map_fds 785 tools/testing/selftests/bpf/test_verifier.c map_fds[16] = __create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), map_fds 787 tools/testing/selftests/bpf/test_verifier.c update_map(map_fds[16], 0); map_fds 789 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_array_small].imm = map_fds[16]; map_fds 794 tools/testing/selftests/bpf/test_verifier.c map_fds[17] = create_sk_storage_map(); map_fds 796 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_sk_storage_map].imm = map_fds[17]; map_fds 801 tools/testing/selftests/bpf/test_verifier.c map_fds[18] = __create_map(BPF_MAP_TYPE_PERF_EVENT_ARRAY, map_fds 804 tools/testing/selftests/bpf/test_verifier.c prog[*fixup_map_event_output].imm = map_fds[18]; map_fds 902 tools/testing/selftests/bpf/test_verifier.c int map_fds[MAX_NR_MAPS]; map_fds 909 tools/testing/selftests/bpf/test_verifier.c map_fds[i] = -1; map_fds 914 tools/testing/selftests/bpf/test_verifier.c do_test_fixup(test, prog_type, prog, map_fds); map_fds 1043 tools/testing/selftests/bpf/test_verifier.c close(map_fds[i]);