Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_lru_map.c152 int lru_map_fd, expected_map_fd; in test_lru_sanity0() local
166 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, 2); in test_lru_sanity0()
167 assert(expected_map_fd != -1); in test_lru_sanity0()
175 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0()
211 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0()
224 assert(!bpf_map_delete_elem(expected_map_fd, &key)); in test_lru_sanity0()
226 assert(map_equal(lru_map_fd, expected_map_fd)); in test_lru_sanity0()
228 close(expected_map_fd); in test_lru_sanity0()
243 int lru_map_fd, expected_map_fd; in test_lru_sanity1() local
264 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity1()
[all …]