Lines Matching refs:map_fds

1012 			  struct bpf_insn *prog, int *map_fds, int *fd_array)  in do_test_fixup()  argument
1048 map_fds[0] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), in do_test_fixup()
1051 prog[*fixup_map_hash_8b].imm = map_fds[0]; in do_test_fixup()
1057 map_fds[1] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), in do_test_fixup()
1060 prog[*fixup_map_hash_48b].imm = map_fds[1]; in do_test_fixup()
1066 map_fds[2] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), in do_test_fixup()
1069 prog[*fixup_map_hash_16b].imm = map_fds[2]; in do_test_fixup()
1075 map_fds[3] = create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in do_test_fixup()
1077 update_map(map_fds[3], 0); in do_test_fixup()
1079 prog[*fixup_map_array_48b].imm = map_fds[3]; in do_test_fixup()
1085 map_fds[4] = create_prog_array(prog_type, 4, 0, 1, 2); in do_test_fixup()
1087 prog[*fixup_prog1].imm = map_fds[4]; in do_test_fixup()
1093 map_fds[5] = create_prog_array(prog_type, 8, 7, 1, 2); in do_test_fixup()
1095 prog[*fixup_prog2].imm = map_fds[5]; in do_test_fixup()
1101 map_fds[6] = create_map_in_map(); in do_test_fixup()
1103 prog[*fixup_map_in_map].imm = map_fds[6]; in do_test_fixup()
1109 map_fds[7] = create_cgroup_storage(false); in do_test_fixup()
1111 prog[*fixup_cgroup_storage].imm = map_fds[7]; in do_test_fixup()
1117 map_fds[8] = create_cgroup_storage(true); in do_test_fixup()
1119 prog[*fixup_percpu_cgroup_storage].imm = map_fds[8]; in do_test_fixup()
1124 map_fds[9] = create_map(BPF_MAP_TYPE_SOCKMAP, sizeof(int), in do_test_fixup()
1127 prog[*fixup_map_sockmap].imm = map_fds[9]; in do_test_fixup()
1132 map_fds[10] = create_map(BPF_MAP_TYPE_SOCKHASH, sizeof(int), in do_test_fixup()
1135 prog[*fixup_map_sockhash].imm = map_fds[10]; in do_test_fixup()
1140 map_fds[11] = create_map(BPF_MAP_TYPE_XSKMAP, sizeof(int), in do_test_fixup()
1143 prog[*fixup_map_xskmap].imm = map_fds[11]; in do_test_fixup()
1148 map_fds[12] = create_map(BPF_MAP_TYPE_STACK_TRACE, sizeof(u32), in do_test_fixup()
1151 prog[*fixup_map_stacktrace].imm = map_fds[12]; in do_test_fixup()
1156 map_fds[13] = create_map_spin_lock(); in do_test_fixup()
1158 prog[*fixup_map_spin_lock].imm = map_fds[13]; in do_test_fixup()
1163 map_fds[14] = __create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in do_test_fixup()
1166 update_map(map_fds[14], 0); in do_test_fixup()
1168 prog[*fixup_map_array_ro].imm = map_fds[14]; in do_test_fixup()
1173 map_fds[15] = __create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in do_test_fixup()
1176 update_map(map_fds[15], 0); in do_test_fixup()
1178 prog[*fixup_map_array_wo].imm = map_fds[15]; in do_test_fixup()
1183 map_fds[16] = __create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in do_test_fixup()
1185 update_map(map_fds[16], 0); in do_test_fixup()
1187 prog[*fixup_map_array_small].imm = map_fds[16]; in do_test_fixup()
1192 map_fds[17] = create_sk_storage_map(); in do_test_fixup()
1194 prog[*fixup_sk_storage_map].imm = map_fds[17]; in do_test_fixup()
1199 map_fds[18] = __create_map(BPF_MAP_TYPE_PERF_EVENT_ARRAY, in do_test_fixup()
1202 prog[*fixup_map_event_output].imm = map_fds[18]; in do_test_fixup()
1207 map_fds[19] = __create_map(BPF_MAP_TYPE_REUSEPORT_SOCKARRAY, in do_test_fixup()
1210 prog[*fixup_map_reuseport_array].imm = map_fds[19]; in do_test_fixup()
1215 map_fds[20] = create_map(BPF_MAP_TYPE_RINGBUF, 0, in do_test_fixup()
1218 prog[*fixup_map_ringbuf].imm = map_fds[20]; in do_test_fixup()
1223 map_fds[21] = create_map_timer(); in do_test_fixup()
1225 prog[*fixup_map_timer].imm = map_fds[21]; in do_test_fixup()
1230 map_fds[22] = create_map_kptr(); in do_test_fixup()
1232 prog[*fixup_map_kptr].imm = map_fds[22]; in do_test_fixup()
1516 int map_fds[MAX_NR_MAPS]; in do_test_single() local
1533 map_fds[i] = -1; in do_test_single()
1539 do_test_fixup(test, prog_type, prog, map_fds, &fd_array[1]); in do_test_single()
1718 close(map_fds[i]); in do_test_single()