Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_mmap.c24 } data_map SEC(".maps");
38 bpf_map_update_elem(&data_map, &two, (const void *)&in_val, 0); in test_mmap()
41 p = bpf_map_lookup_elem(&data_map, &zero); in test_mmap()
44 bpf_map_update_elem(&data_map, &one, &val, 0); in test_mmap()
49 bpf_map_update_elem(&data_map, &far, &val, 0); in test_mmap()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dtailcalls.c228 struct bpf_map *prog_array, *data_map; in test_tailcall_3() local
273 data_map = bpf_object__find_map_by_name(obj, "tailcall.bss"); in test_tailcall_3()
274 if (CHECK_FAIL(!data_map || !bpf_map__is_internal(data_map))) in test_tailcall_3()
277 data_fd = bpf_map__fd(data_map); in test_tailcall_3()
306 struct bpf_map *prog_array, *data_map; in test_tailcall_4() local
335 data_map = bpf_object__find_map_by_name(obj, "tailcall.bss"); in test_tailcall_4()
336 if (CHECK_FAIL(!data_map || !bpf_map__is_internal(data_map))) in test_tailcall_4()
339 data_fd = bpf_map__fd(data_map); in test_tailcall_4()
394 struct bpf_map *prog_array, *data_map; in test_tailcall_5() local
423 data_map = bpf_object__find_map_by_name(obj, "tailcall.bss"); in test_tailcall_5()
[all …]
Dfexit_bpf2bpf.c11 struct bpf_map *data_map = NULL, *map; in check_data_map() local
23 data_map = map; in check_data_map()
26 if (CHECK(!data_map, "find_data_map", "data map not found\n")) in check_data_map()
29 ret = bpf_map_lookup_elem(bpf_map__fd(data_map), &zero, result); in check_data_map()
42 ret = bpf_map_update_elem(bpf_map__fd(data_map), &zero, result, 0); in check_data_map()
Dmmap.c23 struct bpf_map *data_map, *bss_map; in test_mmap() local
37 data_map = skel->maps.data_map; in test_mmap()
38 data_map_fd = bpf_map__fd(data_map); in test_mmap()
Dcore_reloc.c774 struct bpf_map *data_map; in test_core_reloc() local
830 data_map = bpf_object__find_map_by_name(obj, "test_cor.bss"); in test_core_reloc()
831 if (CHECK(!data_map, "find_data_map", "data map not found\n")) in test_core_reloc()
835 MAP_SHARED, bpf_map__fd(data_map), 0); in test_core_reloc()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dipsec.c1817 void *data_map; in start_child() local
1841 data_map = mmap(0, page_size, PROT_READ | PROT_WRITE, in start_child()
1843 if (data_map == MAP_FAILED) { in start_child()
1848 randomize_buffer(data_map, page_size); in start_child()
1864 return child_f(nr, test_desc_fd[0], cmd_sock[1], data_map); in start_child()
1870 return grand_child_f(nr, cmd_sock[0], data_map); in start_child()