Lines Matching refs:errno
40 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap()
53 errno == EEXIST); in test_hashmap()
57 errno == EINVAL); in test_hashmap()
71 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_hashmap()
76 errno == ENOENT); in test_hashmap()
86 errno == E2BIG); in test_hashmap()
95 errno == E2BIG); in test_hashmap()
99 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap()
110 errno == ENOENT); in test_hashmap()
117 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap()
122 errno == ENOENT); in test_hashmap()
124 errno == ENOENT); in test_hashmap()
137 if (errno == ENOMEM) in test_hashmap_sizes()
140 i, j, strerror(errno)); in test_hashmap_sizes()
159 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap_percpu()
185 errno == EEXIST); in test_hashmap_percpu()
189 errno == EINVAL); in test_hashmap_percpu()
200 assert(bpf_map_lookup_elem(fd, &key, value) < 0 && errno == ENOENT); in test_hashmap_percpu()
205 errno == ENOENT); in test_hashmap_percpu()
217 errno == E2BIG); in test_hashmap_percpu()
220 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap_percpu()
240 assert(errno == ENOENT); in test_hashmap_percpu()
251 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap_percpu()
256 errno == ENOENT); in test_hashmap_percpu()
258 errno == ENOENT); in test_hashmap_percpu()
273 "err: %s, flags: 0x%x\n", strerror(errno), map_opts.map_flags); in helper_fill_hashmap()
364 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_arraymap()
375 errno == EEXIST); in test_arraymap()
389 errno == E2BIG); in test_arraymap()
392 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_arraymap()
402 errno == ENOENT); in test_arraymap()
406 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == EINVAL); in test_arraymap()
420 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_arraymap_percpu()
433 errno == EEXIST); in test_arraymap_percpu()
448 errno == E2BIG); in test_arraymap_percpu()
451 assert(bpf_map_lookup_elem(fd, &key, values) < 0 && errno == ENOENT); in test_arraymap_percpu()
461 errno == ENOENT); in test_arraymap_percpu()
465 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == EINVAL); in test_arraymap_percpu()
484 strerror(errno)); in test_arraymap_percpu_many_keys()
514 printf("Failed to create devmap '%s'!\n", strerror(errno)); in test_devmap()
528 printf("Failed to create devmap_hash '%s'!\n", strerror(errno)); in test_devmap_hash()
547 assert(fd < 0 && errno == EINVAL); in test_queuemap()
552 assert(fd < 0 && errno == EINVAL); in test_queuemap()
556 printf("Failed to create queuemap '%s'!\n", strerror(errno)); in test_queuemap()
566 errno == E2BIG); in test_queuemap()
582 errno == ENOENT); in test_queuemap()
585 assert(bpf_map_delete_elem(fd, NULL) < 0 && errno == EINVAL); in test_queuemap()
586 assert(bpf_map_get_next_key(fd, NULL, NULL) < 0 && errno == EINVAL); in test_queuemap()
603 assert(fd < 0 && errno == EINVAL); in test_stackmap()
608 assert(fd < 0 && errno == EINVAL); in test_stackmap()
612 printf("Failed to create stackmap '%s'!\n", strerror(errno)); in test_stackmap()
622 errno == E2BIG); in test_stackmap()
638 errno == ENOENT); in test_stackmap()
641 assert(bpf_map_delete_elem(fd, NULL) < 0 && errno == EINVAL); in test_stackmap()
642 assert(bpf_map_get_next_key(fd, NULL, NULL) < 0 && errno == EINVAL); in test_stackmap()
1132 printf("Failed to create sockmap '%i:%s'!\n", i, strerror(errno)); in test_sockmap()
1163 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_map_in_map()
1238 MAPINMAP_INVALID_PROG, err, errno); in test_map_in_map()
1264 if (errno == ENOENT) in test_map_in_map()
1266 printf("Failed to get next map: %d", errno); in test_map_in_map()
1272 if (errno == ENOENT) in test_map_in_map()
1274 printf("Failed to get map by id %u: %d", id, errno); in test_map_in_map()
1281 errno); in test_map_in_map()
1317 printf("Failed to create large map '%s'!\n", strerror(errno)); in test_map_large()
1330 errno == E2BIG); in test_map_large()
1337 assert(bpf_map_get_next_key(fd, &key, &key) < 0 && errno == ENOENT); in test_map_large()
1342 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_map_large()
1411 if (!attempts || !need_retry(errno)) in map_update_retriable()
1412 return -errno; in map_update_retriable()
1429 if (!attempts || (errno != EAGAIN && errno != EBUSY)) in map_delete_retriable()
1430 return -errno; in map_delete_retriable()
1457 printf("error %d %d\n", err, errno); in test_update_delete()
1462 printf("error %d %d\n", err, errno); in test_update_delete()
1467 printf("error %d %d\n", err, errno); in test_update_delete()
1482 strerror(errno)); in test_map_parallel()
1498 errno == EEXIST); in test_map_parallel()
1505 assert(bpf_map_get_next_key(fd, &key, &key) < 0 && errno == ENOENT); in test_map_parallel()
1521 assert(bpf_map_get_next_key(fd, NULL, &key) < 0 && errno == ENOENT); in test_map_parallel()
1522 assert(bpf_map_get_next_key(fd, &key, &key) < 0 && errno == ENOENT); in test_map_parallel()
1543 strerror(errno)); in test_map_rdonly()
1551 errno == EPERM); in test_map_rdonly()
1554 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_map_rdonly()
1555 assert(bpf_map_get_next_key(fd, &key, &value) < 0 && errno == ENOENT); in test_map_rdonly()
1572 strerror(errno)); in test_map_wronly_hash()
1582 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == EPERM); in test_map_wronly_hash()
1583 assert(bpf_map_get_next_key(fd, &key, &value) < 0 && errno == EPERM); in test_map_wronly_hash()
1602 assert(fd < 0 && errno == EINVAL); in test_map_wronly_stack_or_queue()
1606 printf("Failed to create map '%s'!\n", strerror(errno)); in test_map_wronly_stack_or_queue()
1614 assert(bpf_map_lookup_elem(fd, NULL, &value) < 0 && errno == EPERM); in test_map_wronly_stack_or_queue()
1618 errno == EPERM); in test_map_wronly_stack_or_queue()
1655 type, fd64, errno); in prepare_reuseport_grp()
1660 "err:%d errno:%d\n", err, errno); in prepare_reuseport_grp()
1671 CHECK(err >= 0 || errno != EINVAL, in prepare_reuseport_grp()
1674 type, err, errno); in prepare_reuseport_grp()
1678 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1685 type, err, errno); in prepare_reuseport_grp()
1691 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1700 CHECK(err >= 0 || errno != EINVAL, in prepare_reuseport_grp()
1703 type, err, errno); in prepare_reuseport_grp()
1707 type, err, errno); in prepare_reuseport_grp()
1731 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1735 CHECK(err >= 0 || errno != E2BIG, "reuseport array del >=max_entries", in test_reuseport_array()
1736 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1739 CHECK(err >= 0 || errno != E2BIG, in test_reuseport_array()
1741 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1744 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1746 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1750 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1752 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1754 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1756 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1768 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1771 type, err, errno); in test_reuseport_array()
1780 type, err, errno); in test_reuseport_array()
1788 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1794 CHECK(err >= 0 || errno != EEXIST, in test_reuseport_array()
1797 type, err, errno); in test_reuseport_array()
1805 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1812 CHECK(err >= 0 || errno != EBUSY, in test_reuseport_array()
1815 type, err, errno); in test_reuseport_array()
1818 CHECK(err >= 0 || errno != EBUSY, in test_reuseport_array()
1821 type, err, errno); in test_reuseport_array()
1827 type, err, errno); in test_reuseport_array()
1833 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1840 type, err, errno, sk_cookie, map_cookie); in test_reuseport_array()
1846 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1849 type, err, errno); in test_reuseport_array()
1855 err, errno); in test_reuseport_array()
1857 CHECK(err >= 0 || errno != ENOTSUPP, "reuseport array update SOCK_RAW", in test_reuseport_array()
1858 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1868 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1874 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1876 CHECK(err >= 0 || errno != ENOSPC, in test_reuseport_array()
1878 "err:%d errno:%d\n", err, errno); in test_reuseport_array()