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()
76 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_hashmap()
81 errno == ENOENT); in test_hashmap()
91 errno == E2BIG); in test_hashmap()
100 errno == E2BIG); in test_hashmap()
104 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap()
115 errno == ENOENT); in test_hashmap()
122 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap()
127 errno == ENOENT); in test_hashmap()
129 errno == ENOENT); in test_hashmap()
143 if (errno == ENOMEM) in test_hashmap_sizes()
146 i, j, strerror(errno)); in test_hashmap_sizes()
165 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_hashmap_percpu()
191 errno == EEXIST); in test_hashmap_percpu()
195 errno == EINVAL); in test_hashmap_percpu()
206 assert(bpf_map_lookup_elem(fd, &key, value) < 0 && errno == ENOENT); in test_hashmap_percpu()
211 errno == ENOENT); in test_hashmap_percpu()
223 errno == E2BIG); in test_hashmap_percpu()
226 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap_percpu()
246 assert(errno == ENOENT); in test_hashmap_percpu()
257 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT); in test_hashmap_percpu()
262 errno == ENOENT); in test_hashmap_percpu()
264 errno == ENOENT); in test_hashmap_percpu()
278 "err: %s, flags: 0x%x\n", strerror(errno), map_flags); in helper_fill_hashmap()
370 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_arraymap()
381 errno == EEXIST); in test_arraymap()
395 errno == E2BIG); in test_arraymap()
398 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_arraymap()
408 errno == ENOENT); in test_arraymap()
412 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == EINVAL); in test_arraymap()
426 printf("Failed to create arraymap '%s'!\n", strerror(errno)); in test_arraymap_percpu()
439 errno == EEXIST); in test_arraymap_percpu()
454 errno == E2BIG); in test_arraymap_percpu()
457 assert(bpf_map_lookup_elem(fd, &key, values) < 0 && errno == ENOENT); in test_arraymap_percpu()
467 errno == ENOENT); in test_arraymap_percpu()
471 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == EINVAL); in test_arraymap_percpu()
490 strerror(errno)); in test_arraymap_percpu_many_keys()
521 printf("Failed to create devmap '%s'!\n", strerror(errno)); in test_devmap()
536 printf("Failed to create devmap_hash '%s'!\n", strerror(errno)); in test_devmap_hash()
556 assert(fd < 0 && errno == EINVAL); in test_queuemap()
562 assert(fd < 0 && errno == EINVAL); in test_queuemap()
566 printf("Failed to create queuemap '%s'!\n", strerror(errno)); in test_queuemap()
576 errno == E2BIG); in test_queuemap()
592 errno == ENOENT); in test_queuemap()
595 assert(bpf_map_delete_elem(fd, NULL) < 0 && errno == EINVAL); in test_queuemap()
596 assert(bpf_map_get_next_key(fd, NULL, NULL) < 0 && errno == EINVAL); in test_queuemap()
614 assert(fd < 0 && errno == EINVAL); in test_stackmap()
620 assert(fd < 0 && errno == EINVAL); in test_stackmap()
624 printf("Failed to create stackmap '%s'!\n", strerror(errno)); in test_stackmap()
634 errno == E2BIG); in test_stackmap()
650 errno == ENOENT); in test_stackmap()
653 assert(bpf_map_delete_elem(fd, NULL) < 0 && errno == EINVAL); in test_stackmap()
654 assert(bpf_map_get_next_key(fd, NULL, NULL) < 0 && errno == EINVAL); in test_stackmap()
1141 printf("Failed to create sockmap '%i:%s'!\n", i, strerror(errno)); in test_sockmap()
1173 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_map_in_map()
1244 MAPINMAP_INVALID_PROG, err, errno); in test_map_in_map()
1270 if (errno == ENOENT) in test_map_in_map()
1272 printf("Failed to get next map: %d", errno); in test_map_in_map()
1278 if (errno == ENOENT) in test_map_in_map()
1280 printf("Failed to get map by id %u: %d", id, errno); in test_map_in_map()
1287 errno); in test_map_in_map()
1320 printf("Failed to create large map '%s'!\n", strerror(errno)); in test_map_large()
1333 errno == E2BIG); in test_map_large()
1340 assert(bpf_map_get_next_key(fd, &key, &key) < 0 && errno == ENOENT); in test_map_large()
1345 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_map_large()
1408 if (!attempts || (errno != EAGAIN && errno != EBUSY)) in map_update_retriable()
1409 return -errno; in map_update_retriable()
1426 if (!attempts || (errno != EAGAIN && errno != EBUSY)) in map_delete_retriable()
1427 return -errno; in map_delete_retriable()
1451 printf("error %d %d\n", err, errno); in test_update_delete()
1455 printf("error %d %d\n", err, errno); in test_update_delete()
1460 printf("error %d %d\n", err, errno); in test_update_delete()
1475 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()
1525 strerror(errno)); in test_map_rdonly()
1533 errno == EPERM); in test_map_rdonly()
1536 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_map_rdonly()
1537 assert(bpf_map_get_next_key(fd, &key, &value) < 0 && errno == ENOENT); in test_map_rdonly()
1550 strerror(errno)); in test_map_wronly_hash()
1560 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == EPERM); in test_map_wronly_hash()
1561 assert(bpf_map_get_next_key(fd, &key, &value) < 0 && errno == EPERM); in test_map_wronly_hash()
1576 assert(fd < 0 && errno == EINVAL); in test_map_wronly_stack_or_queue()
1580 printf("Failed to create map '%s'!\n", strerror(errno)); in test_map_wronly_stack_or_queue()
1588 assert(bpf_map_lookup_elem(fd, NULL, &value) < 0 && errno == EPERM); in test_map_wronly_stack_or_queue()
1592 errno == EPERM); in test_map_wronly_stack_or_queue()
1629 type, fd64, errno); in prepare_reuseport_grp()
1634 "err:%d errno:%d\n", err, errno); in prepare_reuseport_grp()
1645 CHECK(err >= 0 || errno != EINVAL, in prepare_reuseport_grp()
1648 type, err, errno); in prepare_reuseport_grp()
1652 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1659 type, err, errno); in prepare_reuseport_grp()
1665 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1674 CHECK(err >= 0 || errno != EINVAL, in prepare_reuseport_grp()
1677 type, err, errno); in prepare_reuseport_grp()
1681 type, err, errno); in prepare_reuseport_grp()
1705 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1709 CHECK(err >= 0 || errno != E2BIG, "reuseport array del >=max_entries", in test_reuseport_array()
1710 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1713 CHECK(err >= 0 || errno != E2BIG, in test_reuseport_array()
1715 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1718 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1720 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1724 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1726 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1728 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1730 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1742 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1745 type, err, errno); in test_reuseport_array()
1754 type, err, errno); in test_reuseport_array()
1762 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1768 CHECK(err >= 0 || errno != EEXIST, in test_reuseport_array()
1771 type, err, errno); in test_reuseport_array()
1779 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1786 CHECK(err >= 0 || errno != EBUSY, in test_reuseport_array()
1789 type, err, errno); in test_reuseport_array()
1792 CHECK(err >= 0 || errno != EBUSY, in test_reuseport_array()
1795 type, err, errno); in test_reuseport_array()
1801 type, err, errno); in test_reuseport_array()
1807 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1814 type, err, errno, sk_cookie, map_cookie); in test_reuseport_array()
1820 CHECK(err >= 0 || errno != ENOENT, in test_reuseport_array()
1823 type, err, errno); in test_reuseport_array()
1829 err, errno); in test_reuseport_array()
1831 CHECK(err >= 0 || errno != ENOTSUPP, "reuseport array update SOCK_RAW", in test_reuseport_array()
1832 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1842 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1848 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1850 CHECK(err >= 0 || errno != ENOSPC, in test_reuseport_array()
1852 "err:%d errno:%d\n", err, errno); in test_reuseport_array()