Home
last modified time | relevance | path

Searched refs:create_map (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/bpf/
A Dtest_lru_map.c173 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity0()
176 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, 2); in test_lru_sanity0()
277 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1()
354 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity2()
517 lru_map_fd = create_map(map_type, map_flags, in test_lru_sanity4()
523 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, in test_lru_sanity4()
593 map_fd = create_map(map_type, map_flags, 1); in test_lru_sanity5()
709 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity7()
712 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, 2); in test_lru_sanity7()
805 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity8()
[all …]
A Dtest_verifier.c479 static int create_map(uint32_t type, uint32_t size_key, in create_map() function
773 map_fds[0] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), in do_test_fixup()
782 map_fds[1] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), in do_test_fixup()
791 map_fds[2] = create_map(BPF_MAP_TYPE_HASH, sizeof(long long), in do_test_fixup()
800 map_fds[3] = create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in do_test_fixup()
849 map_fds[9] = create_map(BPF_MAP_TYPE_SOCKMAP, sizeof(int), in do_test_fixup()
857 map_fds[10] = create_map(BPF_MAP_TYPE_SOCKHASH, sizeof(int), in do_test_fixup()
865 map_fds[11] = create_map(BPF_MAP_TYPE_XSKMAP, sizeof(int), in do_test_fixup()
873 map_fds[12] = create_map(BPF_MAP_TYPE_STACK_TRACE, sizeof(u32), in do_test_fixup()
940 map_fds[20] = create_map(BPF_MAP_TYPE_RINGBUF, 0, in do_test_fixup()
/linux/samples/bpf/
A Dtest_lru_dist.c208 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() function
320 lru_map_fd = create_map(map_type, map_flags, in test_parallel_lru_dist()
323 lru_map_fd = create_map(map_type, map_flags, in test_parallel_lru_dist()
349 map_fd = create_map(map_type, map_flags, 900 * nr_cpus); in test_lru_loss0()
351 map_fd = create_map(map_type, map_flags, 900); in test_lru_loss0()
401 map_fd = create_map(map_type, map_flags, 1000 * nr_cpus); in test_lru_loss1()
403 map_fd = create_map(map_type, map_flags, 1000); in test_lru_loss1()
477 map_fd = create_map(map_type, map_flags, in test_parallel_lru_loss()
480 map_fd = create_map(map_type, map_flags, in test_parallel_lru_loss()

Completed in 10 milliseconds