Lines Matching refs:errno
53 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap()
66 errno == EEXIST); in test_hashmap()
70 errno == EINVAL); in test_hashmap()
77 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_hashmap()
82 errno == ENOENT); in test_hashmap()
92 errno == E2BIG); in test_hashmap()
101 errno == E2BIG); in test_hashmap()
105 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
116 errno == ENOENT); in test_hashmap()
123 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
128 errno == ENOENT); in test_hashmap()
130 errno == ENOENT); in test_hashmap()
144 if (errno == ENOMEM) in test_hashmap_sizes()
147 i, j, strerror(errno)); in test_hashmap_sizes()
166 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap_percpu()
182 errno == EEXIST); in test_hashmap_percpu()
186 errno == EINVAL); in test_hashmap_percpu()
197 assert(bpf_map_lookup_elem(fd, &key, value) == -1 && errno == ENOENT); in test_hashmap_percpu()
202 errno == ENOENT); in test_hashmap_percpu()
214 errno == E2BIG); in test_hashmap_percpu()
217 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap_percpu()
237 assert(errno == ENOENT); in test_hashmap_percpu()
248 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap_percpu()
253 errno == ENOENT); in test_hashmap_percpu()
255 errno == ENOENT); in test_hashmap_percpu()
269 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap_walk()
316 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_arraymap()
327 errno == EEXIST); in test_arraymap()
341 errno == E2BIG); in test_arraymap()
344 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_arraymap()
354 errno == ENOENT); in test_arraymap()
358 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == EINVAL); in test_arraymap()
372 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_arraymap_percpu()
385 errno == EEXIST); in test_arraymap_percpu()
400 errno == E2BIG); in test_arraymap_percpu()
403 assert(bpf_map_lookup_elem(fd, &key, values) == -1 && errno == ENOENT); in test_arraymap_percpu()
413 errno == ENOENT); in test_arraymap_percpu()
417 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == EINVAL); in test_arraymap_percpu()
436 strerror(errno)); in test_arraymap_percpu_many_keys()
467 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_devmap()
952 printf("Failed to create sockmap '%i:%s'!\n", i, strerror(errno)); in test_sockmap()
980 printf("Failed to create large map '%s'!\n", strerror(errno)); in test_map_large()
993 errno == E2BIG); in test_map_large()
1000 assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); in test_map_large()
1005 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_map_large()
1084 strerror(errno)); in test_map_parallel()
1099 errno == EEXIST); in test_map_parallel()
1106 assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); in test_map_parallel()
1122 assert(bpf_map_get_next_key(fd, NULL, &key) == -1 && errno == ENOENT); in test_map_parallel()
1123 assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); in test_map_parallel()
1134 strerror(errno)); in test_map_rdonly()
1142 errno == EPERM); in test_map_rdonly()
1145 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_map_rdonly()
1146 assert(bpf_map_get_next_key(fd, &key, &value) == -1 && errno == ENOENT); in test_map_rdonly()
1157 strerror(errno)); in test_map_wronly()
1167 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == EPERM); in test_map_wronly()
1168 assert(bpf_map_get_next_key(fd, &key, &value) == -1 && errno == EPERM); in test_map_wronly()
1194 type, fd64, errno); in prepare_reuseport_grp()
1199 "err:%d errno:%d\n", err, errno); in prepare_reuseport_grp()
1204 CHECK(err != -1 || errno != EINVAL, in prepare_reuseport_grp()
1207 type, err, errno); in prepare_reuseport_grp()
1211 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1218 type, err, errno); in prepare_reuseport_grp()
1224 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1233 CHECK(err != -1 || errno != EINVAL, in prepare_reuseport_grp()
1236 type, err, errno); in prepare_reuseport_grp()
1240 type, err, errno); in prepare_reuseport_grp()
1264 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1268 CHECK(err != -1 || errno != E2BIG, "reuseport array del >=max_entries", in test_reuseport_array()
1269 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1272 CHECK(err != -1 || errno != E2BIG, in test_reuseport_array()
1274 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1277 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1279 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1283 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1285 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1287 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1289 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1301 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1304 type, err, errno); in test_reuseport_array()
1313 type, err, errno); in test_reuseport_array()
1321 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1327 CHECK(err != -1 || errno != EEXIST, in test_reuseport_array()
1330 type, err, errno); in test_reuseport_array()
1338 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1345 CHECK(err != -1 || errno != EBUSY, in test_reuseport_array()
1348 type, err, errno); in test_reuseport_array()
1351 CHECK(err != -1 || errno != EBUSY, in test_reuseport_array()
1354 type, err, errno); in test_reuseport_array()
1360 type, err, errno); in test_reuseport_array()
1366 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1373 type, err, errno, sk_cookie, map_cookie); in test_reuseport_array()
1379 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1382 type, err, errno); in test_reuseport_array()
1388 err, errno); in test_reuseport_array()
1390 CHECK(err != -1 || errno != ENOTSUPP, "reuseport array update SOCK_RAW", in test_reuseport_array()
1391 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1401 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1406 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1408 CHECK(err != -1 || errno != ENOSPC, in test_reuseport_array()
1410 "err:%d errno:%d\n", err, errno); in test_reuseport_array()