Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dinner_array_lookup.c9 int map1_fd, err; in test_inner_array_lookup() local
22 map1_fd = bpf_map__fd(skel->maps.inner_map1); in test_inner_array_lookup()
23 bpf_map_update_elem(map1_fd, &key, &val, 0); in test_inner_array_lookup()
26 bpf_map_lookup_elem(map1_fd, &key, &val); in test_inner_array_lookup()
H A Dbtf_map_in_map.c25 int map1_fd, map2_fd, map3_fd, map4_fd, map5_fd, map1_id, map2_id; in test_lookup_update() local
38 map1_fd = bpf_map__fd(skel->maps.inner_map1); in test_lookup_update()
48 bpf_map_update_elem(outer_arr_fd, &key, &map1_fd, 0); in test_lookup_update()
53 bpf_map_lookup_elem(map1_fd, &key, &val); in test_lookup_update()
62 bpf_map_update_elem(outer_hash_fd, &key, &map1_fd, 0); in test_lookup_update()
66 bpf_map_lookup_elem(map1_fd, &key, &val); in test_lookup_update()
81 val = i % 2 ? map1_fd : map2_fd; in test_lookup_update()
H A Dbpf_iter.c639 int err, iter_fd, map1_fd, map2_fd, len; in test_overflow() local
655 map1_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 8, 1, NULL); in test_overflow()
656 if (CHECK(map1_fd < 0, "bpf_map_create", in test_overflow()
689 err = bpf_map_get_info_by_fd(map1_fd, &map_info, &map_info_len); in test_overflow()
762 close(map1_fd); in test_overflow()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_progs.h406 int compare_map_keys(int map1_fd, int map2_fd);
H A Dtest_progs.c582 int compare_map_keys(int map1_fd, int map2_fd) in compare_map_keys() argument
589 err = bpf_map_get_next_key(map1_fd, NULL, &key); in compare_map_keys()
596 while (bpf_map_get_next_key(map1_fd, &key, &next_key) == 0) { in compare_map_keys()