Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lru_map.c162 int lru_map_fd, expected_map_fd; in test_lru_sanity0() local
176 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, 2); in test_lru_sanity0()
177 assert(expected_map_fd != -1); in test_lru_sanity0()
185 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0()
226 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0()
234 assert(map_equal(lru_map_fd, expected_map_fd)); in test_lru_sanity0()
236 close(expected_map_fd); in test_lru_sanity0()
251 int lru_map_fd, expected_map_fd; in test_lru_sanity1() local
272 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity1()
273 assert(expected_map_fd != -1); in test_lru_sanity1()
[all …]