Lines Matching refs:errno
44 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap()
57 errno == EEXIST); in test_hashmap()
61 errno == EINVAL); in test_hashmap()
75 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_hashmap()
80 errno == ENOENT); in test_hashmap()
90 errno == E2BIG); in test_hashmap()
99 errno == E2BIG); in test_hashmap()
103 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap()
114 errno == ENOENT); in test_hashmap()
121 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap()
126 errno == ENOENT); in test_hashmap()
128 errno == ENOENT); in test_hashmap()
141 if (errno == ENOMEM) in test_hashmap_sizes()
144 i, j, strerror(errno)); in test_hashmap_sizes()
163 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap_percpu()
189 errno == EEXIST); in test_hashmap_percpu()
193 errno == EINVAL); in test_hashmap_percpu()
204 assert(bpf_map_lookup_elem(fd, &key, value) < 0 && errno == ENOENT); in test_hashmap_percpu()
209 errno == ENOENT); in test_hashmap_percpu()
221 errno == E2BIG); in test_hashmap_percpu()
224 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap_percpu()
244 assert(errno == ENOENT); in test_hashmap_percpu()
255 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap_percpu()
260 errno == ENOENT); in test_hashmap_percpu()
262 errno == ENOENT); in test_hashmap_percpu()
277 "err: %s, flags: 0x%x\n", strerror(errno), map_opts.map_flags); in helper_fill_hashmap()
368 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_arraymap()
379 errno == EEXIST); in test_arraymap()
393 errno == E2BIG); in test_arraymap()
396 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_arraymap()
406 errno == ENOENT); in test_arraymap()
410 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == EINVAL); in test_arraymap()
424 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_arraymap_percpu()
437 errno == EEXIST); in test_arraymap_percpu()
452 errno == E2BIG); in test_arraymap_percpu()
455 assert(bpf_map_lookup_elem(fd, &key, values) < 0 && errno == ENOENT); in test_arraymap_percpu()
465 errno == ENOENT); in test_arraymap_percpu()
469 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == EINVAL); in test_arraymap_percpu()
488 strerror(errno)); in test_arraymap_percpu_many_keys()
518 printf("Failed to create devmap '%s'!\n", strerror(errno)); in test_devmap()
532 printf("Failed to create devmap_hash '%s'!\n", strerror(errno)); in test_devmap_hash()
551 assert(fd < 0 && errno == EINVAL); in test_queuemap()
556 assert(fd < 0 && errno == EINVAL); in test_queuemap()
560 printf("Failed to create queuemap '%s'!\n", strerror(errno)); in test_queuemap()
570 errno == E2BIG); in test_queuemap()
586 errno == ENOENT); in test_queuemap()
589 assert(bpf_map_delete_elem(fd, NULL) < 0 && errno == EINVAL); in test_queuemap()
590 assert(bpf_map_get_next_key(fd, NULL, NULL) < 0 && errno == EINVAL); in test_queuemap()
607 assert(fd < 0 && errno == EINVAL); in test_stackmap()
612 assert(fd < 0 && errno == EINVAL); in test_stackmap()
616 printf("Failed to create stackmap '%s'!\n", strerror(errno)); in test_stackmap()
626 errno == E2BIG); in test_stackmap()
642 errno == ENOENT); in test_stackmap()
645 assert(bpf_map_delete_elem(fd, NULL) < 0 && errno == EINVAL); in test_stackmap()
646 assert(bpf_map_get_next_key(fd, NULL, NULL) < 0 && errno == EINVAL); in test_stackmap()
1136 printf("Failed to create sockmap '%i:%s'!\n", i, strerror(errno)); in test_sockmap()
1167 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()
1405 if (!attempts || (errno != EAGAIN && errno != EBUSY)) in map_update_retriable()
1406 return -errno; in map_update_retriable()
1423 if (!attempts || (errno != EAGAIN && errno != EBUSY)) in map_delete_retriable()
1424 return -errno; in map_delete_retriable()
1450 printf("error %d %d\n", err, errno); in test_update_delete()
1454 printf("error %d %d\n", err, errno); in test_update_delete()
1459 printf("error %d %d\n", err, errno); in test_update_delete()
1474 strerror(errno)); in test_map_parallel()
1490 errno == EEXIST); in test_map_parallel()
1497 assert(bpf_map_get_next_key(fd, &key, &key) < 0 && errno == ENOENT); in test_map_parallel()
1513 assert(bpf_map_get_next_key(fd, NULL, &key) < 0 && errno == ENOENT); in test_map_parallel()
1514 assert(bpf_map_get_next_key(fd, &key, &key) < 0 && errno == ENOENT); in test_map_parallel()
1535 strerror(errno)); in test_map_rdonly()
1543 errno == EPERM); in test_map_rdonly()
1546 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_map_rdonly()
1547 assert(bpf_map_get_next_key(fd, &key, &value) < 0 && errno == ENOENT); in test_map_rdonly()
1564 strerror(errno)); in test_map_wronly_hash()
1574 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == EPERM); in test_map_wronly_hash()
1575 assert(bpf_map_get_next_key(fd, &key, &value) < 0 && errno == EPERM); in test_map_wronly_hash()
1594 assert(fd < 0 && errno == EINVAL); in test_map_wronly_stack_or_queue()
1598 printf("Failed to create map '%s'!\n", strerror(errno)); in test_map_wronly_stack_or_queue()
1606 assert(bpf_map_lookup_elem(fd, NULL, &value) < 0 && errno == EPERM); in test_map_wronly_stack_or_queue()
1610 errno == EPERM); in test_map_wronly_stack_or_queue()
1647 type, fd64, errno); in prepare_reuseport_grp()
1652 "err:%d errno:%d\n", err, errno); in prepare_reuseport_grp()
1663 CHECK(err >= 0 || errno != EINVAL, in prepare_reuseport_grp()
1666 type, err, errno); in prepare_reuseport_grp()
1670 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1677 type, err, errno); in prepare_reuseport_grp()
1683 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1692 CHECK(err >= 0 || errno != EINVAL, in prepare_reuseport_grp()
1695 type, err, errno); in prepare_reuseport_grp()
1699 type, err, errno); in prepare_reuseport_grp()
1723 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1727 CHECK(err >= 0 || errno != E2BIG, "reuseport array del >=max_entries", in test_reuseport_array()
1728 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1731 CHECK(err >= 0 || errno != E2BIG, in test_reuseport_array()
1733 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1736 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1738 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1742 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1744 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1746 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1748 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1760 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1763 type, err, errno); in test_reuseport_array()
1772 type, err, errno); in test_reuseport_array()
1780 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1786 CHECK(err >= 0 || errno != EEXIST, in test_reuseport_array()
1789 type, err, errno); in test_reuseport_array()
1797 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1804 CHECK(err >= 0 || errno != EBUSY, in test_reuseport_array()
1807 type, err, errno); in test_reuseport_array()
1810 CHECK(err >= 0 || errno != EBUSY, in test_reuseport_array()
1813 type, err, errno); in test_reuseport_array()
1819 type, err, errno); in test_reuseport_array()
1825 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1832 type, err, errno, sk_cookie, map_cookie); in test_reuseport_array()
1838 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1841 type, err, errno); in test_reuseport_array()
1847 err, errno); in test_reuseport_array()
1849 CHECK(err >= 0 || errno != ENOTSUPP, "reuseport array update SOCK_RAW", in test_reuseport_array()
1850 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1860 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1866 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1868 CHECK(err >= 0 || errno != ENOSPC, in test_reuseport_array()
1870 "err:%d errno:%d\n", err, errno); in test_reuseport_array()