Searched refs:map2_fd (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_map_in_map.c | 25 int map1_fd, map2_fd, map3_fd, map4_fd, map5_fd, map1_id, map2_id; in test_lookup_update() local 39 map2_fd = bpf_map__fd(skel->maps.inner_map2); in test_lookup_update() 49 bpf_map_update_elem(outer_hash_fd, &key, &map2_fd, 0); in test_lookup_update() 55 bpf_map_lookup_elem(map2_fd, &key, &val); in test_lookup_update() 61 bpf_map_update_elem(outer_arr_fd, &key, &map2_fd, 0); in test_lookup_update() 68 bpf_map_lookup_elem(map2_fd, &key, &val); in test_lookup_update() 81 val = i % 2 ? map1_fd : map2_fd; in test_lookup_update()
|
H A D | bpf_iter.c | 653 int err, iter_fd, map1_fd, map2_fd, len; in test_overflow() local 672 map2_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 8, 1, NULL); in test_overflow() 673 if (!ASSERT_GE(map2_fd, 0, "bpf_map_create")) in test_overflow() 706 err = bpf_map_get_info_by_fd(map2_fd, &map_info, &map_info_len); in test_overflow() 767 close(map2_fd); in test_overflow()
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_progs.h | 427 int compare_map_keys(int map1_fd, int map2_fd);
|
H A D | test_progs.c | 586 int compare_map_keys(int map1_fd, int map2_fd) in compare_map_keys() argument 596 err = bpf_map_lookup_elem(map2_fd, &key, val_buf); in compare_map_keys() 601 err = bpf_map_lookup_elem(map2_fd, &next_key, val_buf); in compare_map_keys()
|