Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
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
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()
A Dbpf_iter.c637 int err, iter_fd, map1_fd, map2_fd, len; in test_overflow() local
657 map2_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 8, 1, NULL); in test_overflow()
658 if (CHECK(map2_fd < 0, "bpf_map_create", in test_overflow()
693 err = bpf_map_get_info_by_fd(map2_fd, &map_info, &map_info_len); in test_overflow()
758 close(map2_fd); in test_overflow()
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_progs.h390 int compare_map_keys(int map1_fd, int map2_fd);
A Dtest_progs.c531 int compare_map_keys(int map1_fd, int map2_fd) in compare_map_keys() argument
541 err = bpf_map_lookup_elem(map2_fd, &key, val_buf); in compare_map_keys()
546 err = bpf_map_lookup_elem(map2_fd, &next_key, val_buf); in compare_map_keys()

Completed in 12 milliseconds