Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dtailcalls.c233 struct bpf_map *prog_array, *data_map; in test_tailcall_count() local
328 data_map = bpf_object__find_map_by_name(obj, "tailcall.bss"); in test_tailcall_count()
329 if (CHECK_FAIL(!data_map || !bpf_map__is_internal(data_map))) in test_tailcall_count()
332 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
342 data_map = bpf_object__find_map_by_name(fentry_obj, ".bss"); in test_tailcall_count()
343 if (!ASSERT_FALSE(!data_map || !bpf_map__is_internal(data_map), in test_tailcall_count()
347 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
359 data_map = bpf_object__find_map_by_name(fexit_obj, ".bss"); in test_tailcall_count()
360 if (!ASSERT_FALSE(!data_map || !bpf_map__is_internal(data_map), in test_tailcall_count()
364 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
[all …]
Dmmap.c23 struct bpf_map *data_map, *bss_map; in test_mmap() local
41 err = bpf_map__set_max_entries(skel->maps.data_map, in test_mmap()
51 data_map = skel->maps.data_map; in test_mmap()
52 data_map_fd = bpf_map__fd(data_map); in test_mmap()
Dfexit_bpf2bpf.c14 struct bpf_map *data_map = NULL, *map; in check_data_map() local
26 data_map = map; in check_data_map()
29 if (CHECK(!data_map, "find_data_map", "data map not found\n")) in check_data_map()
32 ret = bpf_map_lookup_elem(bpf_map__fd(data_map), &zero, result); in check_data_map()
45 ret = bpf_map_update_elem(bpf_map__fd(data_map), &zero, result, 0); in check_data_map()
Dcore_reloc.c1006 struct bpf_map *data_map; in run_core_reloc_tests() local
1080 data_map = bpf_object__find_map_by_name(obj, ".bss"); in run_core_reloc_tests()
1081 if (CHECK(!data_map, "find_data_map", "data map not found\n")) in run_core_reloc_tests()
1085 MAP_SHARED, bpf_map__fd(data_map), 0); in run_core_reloc_tests()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_mmap.c22 } data_map SEC(".maps");
36 bpf_map_update_elem(&data_map, &two, (const void *)&in_val, 0); in test_mmap()
39 p = bpf_map_lookup_elem(&data_map, &zero); in test_mmap()
42 bpf_map_update_elem(&data_map, &one, &val, 0); in test_mmap()
47 bpf_map_update_elem(&data_map, &far, &val, 0); in test_mmap()
/linux-6.12.1/drivers/accel/habanalabs/common/
Dsecurity.h95 u32 data_map; member
/linux-6.12.1/tools/testing/selftests/net/
Dipsec.c1957 void *data_map; in start_child() local
1981 data_map = mmap(0, page_size, PROT_READ | PROT_WRITE, in start_child()
1983 if (data_map == MAP_FAILED) { in start_child()
1988 randomize_buffer(data_map, page_size); in start_child()
2004 return child_f(nr, test_desc_fd[0], cmd_sock[1], data_map); in start_child()
2010 return grand_child_f(nr, cmd_sock[0], data_map); in start_child()
/linux-6.12.1/tools/testing/selftests/bpf/
Dxskxceiver.c2210 struct bpf_map *data_map; in testapp_xdp_metadata_copy() local
2219 data_map = bpf_object__find_map_by_name(skel_rx->obj, "xsk_xdp_.bss"); in testapp_xdp_metadata_copy()
2220 if (!data_map || !bpf_map__is_internal(data_map)) { in testapp_xdp_metadata_copy()
2225 if (bpf_map_update_elem(bpf_map__fd(data_map), &key, &count, BPF_ANY)) { in testapp_xdp_metadata_copy()