Lines Matching refs:map_fds
1008 struct bpf_insn *prog, int *map_fds, int *fd_array)
1044 map_fds[0] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long),
1047 prog[*fixup_map_hash_8b].imm = map_fds[0];
1053 map_fds[1] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long),
1056 prog[*fixup_map_hash_48b].imm = map_fds[1];
1062 map_fds[2] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long),
1065 prog[*fixup_map_hash_16b].imm = map_fds[2];
1071 map_fds[3] = create_map(BPF_MAP_TYPE_ARRAY, sizeof(int),
1073 update_map(map_fds[3], 0);
1075 prog[*fixup_map_array_48b].imm = map_fds[3];
1081 map_fds[4] = create_prog_array(prog_type, 4, 0, 1, 2);
1083 prog[*fixup_prog1].imm = map_fds[4];
1089 map_fds[5] = create_prog_array(prog_type, 8, 7, 1, 2);
1091 prog[*fixup_prog2].imm = map_fds[5];
1097 map_fds[6] = create_map_in_map();
1099 prog[*fixup_map_in_map].imm = map_fds[6];
1105 map_fds[7] = create_cgroup_storage(false);
1107 prog[*fixup_cgroup_storage].imm = map_fds[7];
1113 map_fds[8] = create_cgroup_storage(true);
1115 prog[*fixup_percpu_cgroup_storage].imm = map_fds[8];
1120 map_fds[9] = create_map(BPF_MAP_TYPE_SOCKMAP, sizeof(int),
1123 prog[*fixup_map_sockmap].imm = map_fds[9];
1128 map_fds[10] = create_map(BPF_MAP_TYPE_SOCKHASH, sizeof(int),
1131 prog[*fixup_map_sockhash].imm = map_fds[10];
1136 map_fds[11] = create_map(BPF_MAP_TYPE_XSKMAP, sizeof(int),
1139 prog[*fixup_map_xskmap].imm = map_fds[11];
1144 map_fds[12] = create_map(BPF_MAP_TYPE_STACK_TRACE, sizeof(u32),
1147 prog[*fixup_map_stacktrace].imm = map_fds[12];
1152 map_fds[13] = create_map_spin_lock();
1154 prog[*fixup_map_spin_lock].imm = map_fds[13];
1159 map_fds[14] = __create_map(BPF_MAP_TYPE_ARRAY, sizeof(int),
1162 update_map(map_fds[14], 0);
1164 prog[*fixup_map_array_ro].imm = map_fds[14];
1169 map_fds[15] = __create_map(BPF_MAP_TYPE_ARRAY, sizeof(int),
1172 update_map(map_fds[15], 0);
1174 prog[*fixup_map_array_wo].imm = map_fds[15];
1179 map_fds[16] = __create_map(BPF_MAP_TYPE_ARRAY, sizeof(int),
1181 update_map(map_fds[16], 0);
1183 prog[*fixup_map_array_small].imm = map_fds[16];
1188 map_fds[17] = create_sk_storage_map();
1190 prog[*fixup_sk_storage_map].imm = map_fds[17];
1195 map_fds[18] = __create_map(BPF_MAP_TYPE_PERF_EVENT_ARRAY,
1198 prog[*fixup_map_event_output].imm = map_fds[18];
1203 map_fds[19] = __create_map(BPF_MAP_TYPE_REUSEPORT_SOCKARRAY,
1206 prog[*fixup_map_reuseport_array].imm = map_fds[19];
1211 map_fds[20] = create_map(BPF_MAP_TYPE_RINGBUF, 0,
1214 prog[*fixup_map_ringbuf].imm = map_fds[20];
1219 map_fds[21] = create_map_timer();
1221 prog[*fixup_map_timer].imm = map_fds[21];
1226 map_fds[22] = create_map_kptr();
1228 prog[*fixup_map_kptr].imm = map_fds[22];
1512 int map_fds[MAX_NR_MAPS];
1529 map_fds[i] = -1;
1535 do_test_fixup(test, prog_type, prog, map_fds, &fd_array[1]);
1714 close(map_fds[i]);