Lines Matching refs:errno

11 #include <errno.h>
40 printf("Failed to create hashmap '%s'!\n", strerror(errno));
53 errno == EEXIST);
57 errno == EINVAL);
71 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT);
76 errno == ENOENT);
86 errno == E2BIG);
95 errno == E2BIG);
99 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT);
110 errno == ENOENT);
117 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT);
122 errno == ENOENT);
124 errno == ENOENT);
137 if (errno == ENOMEM)
140 i, j, strerror(errno));
159 printf("Failed to create hashmap '%s'!\n", strerror(errno));
185 errno == EEXIST);
189 errno == EINVAL);
200 assert(bpf_map_lookup_elem(fd, &key, value) < 0 && errno == ENOENT);
205 errno == ENOENT);
217 errno == E2BIG);
220 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT);
240 assert(errno == ENOENT);
251 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == ENOENT);
256 errno == ENOENT);
258 errno == ENOENT);
273 "err: %s, flags: 0x%x\n", strerror(errno), map_opts.map_flags);
364 printf("Failed to create arraymap '%s'!\n", strerror(errno));
375 errno == EEXIST);
389 errno == E2BIG);
392 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT);
402 errno == ENOENT);
406 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == EINVAL);
420 printf("Failed to create arraymap '%s'!\n", strerror(errno));
433 errno == EEXIST);
448 errno == E2BIG);
451 assert(bpf_map_lookup_elem(fd, &key, values) < 0 && errno == ENOENT);
461 errno == ENOENT);
465 assert(bpf_map_delete_elem(fd, &key) < 0 && errno == EINVAL);
484 strerror(errno));
514 printf("Failed to create devmap '%s'!\n", strerror(errno));
528 printf("Failed to create devmap_hash '%s'!\n", strerror(errno));
547 assert(fd < 0 && errno == EINVAL);
552 assert(fd < 0 && errno == EINVAL);
556 printf("Failed to create queuemap '%s'!\n", strerror(errno));
566 errno == E2BIG);
582 errno == ENOENT);
584 /* Check that non supported functions set errno to EINVAL */
585 assert(bpf_map_delete_elem(fd, NULL) < 0 && errno == EINVAL);
586 assert(bpf_map_get_next_key(fd, NULL, NULL) < 0 && errno == EINVAL);
603 assert(fd < 0 && errno == EINVAL);
608 assert(fd < 0 && errno == EINVAL);
612 printf("Failed to create stackmap '%s'!\n", strerror(errno));
622 errno == E2BIG);
638 errno == ENOENT);
640 /* Check that non supported functions set errno to EINVAL */
641 assert(bpf_map_delete_elem(fd, NULL) < 0 && errno == EINVAL);
642 assert(bpf_map_get_next_key(fd, NULL, NULL) < 0 && errno == EINVAL);
1132 printf("Failed to create sockmap '%i:%s'!\n", i, strerror(errno));
1163 printf("Failed to create hashmap '%s'!\n", strerror(errno));
1238 MAPINMAP_INVALID_PROG, err, errno);
1264 if (errno == ENOENT)
1266 printf("Failed to get next map: %d", errno);
1272 if (errno == ENOENT)
1274 printf("Failed to get map by id %u: %d", id, errno);
1281 errno);
1317 printf("Failed to create large map '%s'!\n", strerror(errno));
1330 errno == E2BIG);
1337 assert(bpf_map_get_next_key(fd, &key, &key) < 0 && errno == ENOENT);
1342 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT);
1412 if (!attempts || !need_retry(errno))
1413 return -errno;
1430 if (!attempts || (errno != EAGAIN && errno != EBUSY))
1431 return -errno;
1458 printf("error %d %d\n", err, errno);
1463 printf("error %d %d\n", err, errno);
1468 printf("error %d %d\n", err, errno);
1483 strerror(errno));
1499 errno == EEXIST);
1506 assert(bpf_map_get_next_key(fd, &key, &key) < 0 && errno == ENOENT);
1522 assert(bpf_map_get_next_key(fd, NULL, &key) < 0 && errno == ENOENT);
1523 assert(bpf_map_get_next_key(fd, &key, &key) < 0 && errno == ENOENT);
1544 strerror(errno));
1552 errno == EPERM);
1555 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT);
1556 assert(bpf_map_get_next_key(fd, &key, &value) < 0 && errno == ENOENT);
1573 strerror(errno));
1583 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == EPERM);
1584 assert(bpf_map_get_next_key(fd, &key, &value) < 0 && errno == EPERM);
1603 assert(fd < 0 && errno == EINVAL);
1607 printf("Failed to create map '%s'!\n", strerror(errno));
1615 assert(bpf_map_lookup_elem(fd, NULL, &value) < 0 && errno == EPERM);
1619 errno == EPERM);
1655 "sock_type:%d fd64:%lld errno:%d\n",
1656 type, fd64, errno);
1661 "err:%d errno:%d\n", err, errno);
1672 CHECK(err >= 0 || errno != EINVAL,
1674 "sock_type:%d err:%d errno:%d\n",
1675 type, err, errno);
1679 "sock_type:%d err:%d errno:%d\n", type, err, errno);
1685 "sock_type:%d err:%d errno:%d\n",
1686 type, err, errno);
1692 "sock_type:%d err:%d errno:%d\n", type, err, errno);
1701 CHECK(err >= 0 || errno != EINVAL,
1703 "sock_type:%d err:%d errno:%d\n",
1704 type, err, errno);
1707 "sock_type:%d, err:%d errno:%d\n",
1708 type, err, errno);
1732 "map_fd:%d, errno:%d\n", map_fd, errno);
1736 CHECK(err >= 0 || errno != E2BIG, "reuseport array del >=max_entries",
1737 "err:%d errno:%d\n", err, errno);
1740 CHECK(err >= 0 || errno != E2BIG,
1742 "err:%d errno:%d\n", err, errno);
1745 CHECK(err >= 0 || errno != ENOENT,
1747 "err:%d errno:%d\n", err, errno);
1751 CHECK(err >= 0 || errno != ENOENT,
1753 "err:%d errno:%d\n", err, errno);
1755 CHECK(err >= 0 || errno != ENOENT,
1757 "err:%d errno:%d\n", err, errno);
1769 CHECK(err >= 0 || errno != ENOENT,
1771 "sock_type:%d err:%d errno:%d\n",
1772 type, err, errno);
1780 "sock_type:%d err:%d errno:%d\n",
1781 type, err, errno);
1789 "sock_type:%d err:%d errno:%d\n", type, err, errno);
1795 CHECK(err >= 0 || errno != EEXIST,
1797 "sock_type:%d err:%d errno:%d\n",
1798 type, err, errno);
1806 "sock_type:%d err:%d errno:%d\n", type, err, errno);
1813 CHECK(err >= 0 || errno != EBUSY,
1815 "sock_type:%d err:%d errno:%d\n",
1816 type, err, errno);
1819 CHECK(err >= 0 || errno != EBUSY,
1821 "sock_type:%d err:%d errno:%d\n",
1822 type, err, errno);
1827 "sock_type:%d err:%d errno:%d\n",
1828 type, err, errno);
1834 "sock_type:%d err:%d errno:%d\n", type, err, errno);
1840 "sock_type:%d err:%d errno:%d sk_cookie:0x%llx map_cookie:0x%llxn",
1841 type, err, errno, sk_cookie, map_cookie);
1847 CHECK(err >= 0 || errno != ENOENT,
1849 "sock_type:%d err:%d errno:%d\n",
1850 type, err, errno);
1855 CHECK(fd64 == -1, "socket(SOCK_RAW)", "err:%d errno:%d\n",
1856 err, errno);
1858 CHECK(err >= 0 || errno != ENOTSUPP, "reuseport array update SOCK_RAW",
1859 "err:%d errno:%d\n", err, errno);
1869 "map_fd:%d, errno:%d\n", map_fd, errno);
1875 "err:%d errno:%d\n", err, errno);
1877 CHECK(err >= 0 || errno != ENOSPC,
1879 "err:%d errno:%d\n", err, errno);