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()
1124 printf("Failed to create sockmap '%i:%s'!\n", i, strerror(errno)); in test_sockmap()
1151 printf("Failed to create hashmap '%s'!\n", strerror(errno)); in test_map_in_map()
1236 printf("Failed to create large map '%s'!\n", strerror(errno)); in test_map_large()
1249 errno == E2BIG); in test_map_large()
1256 assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); in test_map_large()
1261 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_map_large()
1343 strerror(errno)); in test_map_parallel()
1358 errno == EEXIST); in test_map_parallel()
1365 assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); in test_map_parallel()
1381 assert(bpf_map_get_next_key(fd, NULL, &key) == -1 && errno == ENOENT); in test_map_parallel()
1382 assert(bpf_map_get_next_key(fd, &key, &key) == -1 && errno == ENOENT); in test_map_parallel()
1393 strerror(errno)); in test_map_rdonly()
1401 errno == EPERM); in test_map_rdonly()
1404 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == ENOENT); in test_map_rdonly()
1405 assert(bpf_map_get_next_key(fd, &key, &value) == -1 && errno == ENOENT); in test_map_rdonly()
1418 strerror(errno)); in test_map_wronly_hash()
1428 assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == EPERM); in test_map_wronly_hash()
1429 assert(bpf_map_get_next_key(fd, &key, &value) == -1 && errno == EPERM); in test_map_wronly_hash()
1444 assert(fd < 0 && errno == EINVAL); in test_map_wronly_stack_or_queue()
1448 printf("Failed to create map '%s'!\n", strerror(errno)); in test_map_wronly_stack_or_queue()
1456 assert(bpf_map_lookup_elem(fd, NULL, &value) == -1 && errno == EPERM); in test_map_wronly_stack_or_queue()
1460 errno == EPERM); in test_map_wronly_stack_or_queue()
1497 type, fd64, errno); in prepare_reuseport_grp()
1502 "err:%d errno:%d\n", err, errno); in prepare_reuseport_grp()
1513 CHECK(err != -1 || errno != EINVAL, in prepare_reuseport_grp()
1516 type, err, errno); in prepare_reuseport_grp()
1520 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1527 type, err, errno); in prepare_reuseport_grp()
1533 "sock_type:%d err:%d errno:%d\n", type, err, errno); in prepare_reuseport_grp()
1542 CHECK(err != -1 || errno != EINVAL, in prepare_reuseport_grp()
1545 type, err, errno); in prepare_reuseport_grp()
1549 type, err, errno); in prepare_reuseport_grp()
1573 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1577 CHECK(err != -1 || errno != E2BIG, "reuseport array del >=max_entries", in test_reuseport_array()
1578 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1581 CHECK(err != -1 || errno != E2BIG, in test_reuseport_array()
1583 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1586 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1588 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1592 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1594 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1596 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1598 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1610 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1613 type, err, errno); in test_reuseport_array()
1622 type, err, errno); in test_reuseport_array()
1630 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1636 CHECK(err != -1 || errno != EEXIST, in test_reuseport_array()
1639 type, err, errno); in test_reuseport_array()
1647 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1654 CHECK(err != -1 || errno != EBUSY, in test_reuseport_array()
1657 type, err, errno); in test_reuseport_array()
1660 CHECK(err != -1 || errno != EBUSY, in test_reuseport_array()
1663 type, err, errno); in test_reuseport_array()
1669 type, err, errno); in test_reuseport_array()
1675 "sock_type:%d err:%d errno:%d\n", type, err, errno); in test_reuseport_array()
1682 type, err, errno, sk_cookie, map_cookie); in test_reuseport_array()
1688 CHECK(err != -1 || errno != ENOENT, in test_reuseport_array()
1691 type, err, errno); in test_reuseport_array()
1697 err, errno); in test_reuseport_array()
1699 CHECK(err != -1 || errno != ENOTSUPP, "reuseport array update SOCK_RAW", in test_reuseport_array()
1700 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1710 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1716 "err:%d errno:%d\n", err, errno); in test_reuseport_array()
1718 CHECK(err != -1 || errno != ENOSPC, in test_reuseport_array()
1720 "err:%d errno:%d\n", err, errno); in test_reuseport_array()