Lines Matching refs:errno

45 		printf("Failed to create hashmap '%s'!\n", strerror(errno));  in test_hashmap()
58 errno == EEXIST); in test_hashmap()
62 errno == EINVAL); in test_hashmap()
69 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_hashmap()
74 errno == ENOENT); in test_hashmap()
84 errno == E2BIG); in test_hashmap()
93 errno == E2BIG); in test_hashmap()
97 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
108 errno == ENOENT); in test_hashmap()
115 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap()
120 errno == ENOENT); in test_hashmap()
122 errno == ENOENT); in test_hashmap()
136 if (errno == ENOMEM) in test_hashmap_sizes()
139 i, j, strerror(errno)); in test_hashmap_sizes()
158 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap_percpu()
174 errno == EEXIST); in test_hashmap_percpu()
178 errno == EINVAL); in test_hashmap_percpu()
189 assert(bpf_map_lookup_elem(fd, &key, value) == -1 && errno == ENOENT); in test_hashmap_percpu()
194 errno == ENOENT); in test_hashmap_percpu()
206 errno == E2BIG); in test_hashmap_percpu()
209 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap_percpu()
229 assert(errno == ENOENT); in test_hashmap_percpu()
240 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == ENOENT); in test_hashmap_percpu()
245 errno == ENOENT); in test_hashmap_percpu()
247 errno == ENOENT); in test_hashmap_percpu()
261 "err: %s, flags: 0x%x\n", strerror(errno), map_flags); in helper_fill_hashmap()
353 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_arraymap()
364 errno == EEXIST); in test_arraymap()
378 errno == E2BIG); in test_arraymap()
381 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_arraymap()
391 errno == ENOENT); in test_arraymap()
395 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == EINVAL); in test_arraymap()
409 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_arraymap_percpu()
422 errno == EEXIST); in test_arraymap_percpu()
437 errno == E2BIG); in test_arraymap_percpu()
440 assert(bpf_map_lookup_elem(fd, &key, values) == -1 && errno == ENOENT); in test_arraymap_percpu()
450 errno == ENOENT); in test_arraymap_percpu()
454 assert(bpf_map_delete_elem(fd, &key) == -1 && errno == EINVAL); in test_arraymap_percpu()
473 strerror(errno)); in test_arraymap_percpu_many_keys()
504 printf("Failed to create devmap '%s'!\n", strerror(errno)); in test_devmap()
519 printf("Failed to create devmap_hash '%s'!\n", strerror(errno)); in test_devmap_hash()
539 assert(fd < 0 && errno == EINVAL); in test_queuemap()
545 assert(fd < 0 && errno == EINVAL); in test_queuemap()
549 printf("Failed to create queuemap '%s'!\n", strerror(errno)); in test_queuemap()
559 errno == E2BIG); in test_queuemap()
575 errno == ENOENT); in test_queuemap()
578 assert(bpf_map_delete_elem(fd, NULL) == -1 && errno == EINVAL); in test_queuemap()
579 assert(bpf_map_get_next_key(fd, NULL, NULL) == -1 && errno == EINVAL); in test_queuemap()
597 assert(fd < 0 && errno == EINVAL); in test_stackmap()
603 assert(fd < 0 && errno == EINVAL); in test_stackmap()
607 printf("Failed to create stackmap '%s'!\n", strerror(errno)); in test_stackmap()
617 errno == E2BIG); in test_stackmap()
633 errno == ENOENT); in test_stackmap()
636 assert(bpf_map_delete_elem(fd, NULL) == -1 && errno == EINVAL); in test_stackmap()
637 assert(bpf_map_get_next_key(fd, NULL, NULL) == -1 && errno == EINVAL); in test_stackmap()
1128 printf("Failed to create sockmap '%i:%s'!\n", i, strerror(errno)); in test_sockmap()
1156 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_map_in_map()
1244 printf("Failed to create large map '%s'!\n", strerror(errno)); in test_map_large()
1257 errno == E2BIG); in test_map_large()
1264 assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); in test_map_large()
1269 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_map_large()
1349 strerror(errno)); in test_map_parallel()
1364 errno == EEXIST); in test_map_parallel()
1371 assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); in test_map_parallel()
1387 assert(bpf_map_get_next_key(fd, NULL, &key) == -1 && errno == ENOENT); in test_map_parallel()
1388 assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); in test_map_parallel()
1399 strerror(errno)); in test_map_rdonly()
1407 errno == EPERM); in test_map_rdonly()
1410 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_map_rdonly()
1411 assert(bpf_map_get_next_key(fd, &key, &value) == -1 && errno == ENOENT); in test_map_rdonly()
1422 strerror(errno)); in test_map_wronly()
1432 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == EPERM); in test_map_wronly()
1433 assert(bpf_map_get_next_key(fd, &key, &value) == -1 && errno == EPERM); in test_map_wronly()
1461 type, fd64, errno); in prepare_reuseport_grp()
1466 "err:%d errno:%d\n", err, errno); in prepare_reuseport_grp()
1477 CHECK(err != -1 || errno != EINVAL, in prepare_reuseport_grp()
1480 type, err, errno); in prepare_reuseport_grp()
1484 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1491 type, err, errno); in prepare_reuseport_grp()
1497 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1506 CHECK(err != -1 || errno != EINVAL, in prepare_reuseport_grp()
1509 type, err, errno); in prepare_reuseport_grp()
1513 type, err, errno); in prepare_reuseport_grp()
1537 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1541 CHECK(err != -1 || errno != E2BIG, "reuseport array del >=max_entries", in test_reuseport_array()
1542 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1545 CHECK(err != -1 || errno != E2BIG, in test_reuseport_array()
1547 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1550 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1552 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1556 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1558 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1560 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1562 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1574 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1577 type, err, errno); in test_reuseport_array()
1586 type, err, errno); in test_reuseport_array()
1594 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1600 CHECK(err != -1 || errno != EEXIST, in test_reuseport_array()
1603 type, err, errno); in test_reuseport_array()
1611 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1618 CHECK(err != -1 || errno != EBUSY, in test_reuseport_array()
1621 type, err, errno); in test_reuseport_array()
1624 CHECK(err != -1 || errno != EBUSY, in test_reuseport_array()
1627 type, err, errno); in test_reuseport_array()
1633 type, err, errno); in test_reuseport_array()
1639 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1646 type, err, errno, sk_cookie, map_cookie); in test_reuseport_array()
1652 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1655 type, err, errno); in test_reuseport_array()
1661 err, errno); in test_reuseport_array()
1663 CHECK(err != -1 || errno != ENOTSUPP, "reuseport array update SOCK_RAW", in test_reuseport_array()
1664 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1674 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1680 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1682 CHECK(err != -1 || errno != ENOSPC, in test_reuseport_array()
1684 "err:%d errno:%d\n", err, errno); in test_reuseport_array()