Home
last modified time | relevance | path

Searched refs:bpf_map_create (Results 1 – 25 of 44) sorted by relevance

12

/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dbloom_filter_map.c15 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 4, sizeof(value), 100, NULL); in test_fail_cases()
20 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, 0, 100, NULL); in test_fail_cases()
25 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 0, NULL); in test_fail_cases()
31 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 100, &opts); in test_fail_cases()
35 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 100, NULL); in test_fail_cases()
66 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 100, &opts); in test_success_cases()
105 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(*rand_vals), in test_inner_map()
Dcgroup_attach_multi.c18 map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 8, 1, NULL); in prog_load_cnt()
24 cgroup_storage_fd = bpf_map_create(BPF_MAP_TYPE_CGROUP_STORAGE, NULL, in prog_load_cnt()
31 percpu_cgroup_storage_fd = bpf_map_create( in prog_load_cnt()
Dringbuf_multi.c60 proto_fd = bpf_map_create(BPF_MAP_TYPE_RINGBUF, NULL, 0, 0, page_size, NULL); in test_ringbuf_multi()
Dsockmap_ktls.c153 map = bpf_map_create(map_type, NULL, sizeof(int), sizeof(int), 1, NULL); in run_tests()
Dtest_bpffs.c85 map = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 4, 1, NULL); in fn()
/Linux-v6.1/tools/testing/selftests/bpf/
Dtest_maps.c42 fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(key), sizeof(value), 2, &map_opts); in test_hashmap()
139 fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, i, j, 2, &map_opts); in test_hashmap_sizes()
160 fd = bpf_map_create(BPF_MAP_TYPE_PERCPU_HASH, NULL, sizeof(key), in test_hashmap_percpu()
273 fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(key), sizeof(value), in helper_fill_hashmap()
366 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(key), sizeof(value), 2, NULL); in test_arraymap()
421 fd = bpf_map_create(BPF_MAP_TYPE_PERCPU_ARRAY, NULL, sizeof(key), in test_arraymap_percpu()
484 fd = bpf_map_create(BPF_MAP_TYPE_PERCPU_ARRAY, NULL, sizeof(key), in test_arraymap_percpu_many_keys()
516 fd = bpf_map_create(BPF_MAP_TYPE_DEVMAP, NULL, sizeof(key), sizeof(value), 2, NULL); in test_devmap()
530 fd = bpf_map_create(BPF_MAP_TYPE_DEVMAP_HASH, NULL, sizeof(key), sizeof(value), 2, NULL); in test_devmap_hash()
550 fd = bpf_map_create(BPF_MAP_TYPE_QUEUE, NULL, 4, sizeof(val), MAP_SIZE, &map_opts); in test_queuemap()
[all …]
Dtest_cgroup_storage.c57 map_fd = bpf_map_create(BPF_MAP_TYPE_CGROUP_STORAGE, NULL, sizeof(key), in main()
64 percpu_map_fd = bpf_map_create(BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE, NULL, in main()
Dtest_lpm_map.c237 map = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, in test_lpm_map()
347 map_fd_ipv4 = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, in test_lpm_ipaddr()
352 map_fd_ipv6 = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, in test_lpm_ipaddr()
434 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, in test_lpm_delete()
544 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, key_size, sizeof(value), 100, &opts); in test_lpm_get_next_key()
756 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, key_size, value_size, 100, &opts); in test_lpm_multi_thread()
Dtest_verifier.c555 fd = bpf_map_create(type, NULL, size_key, size_value, max_elem, &opts); in __create_map()
611 mfd = bpf_map_create(BPF_MAP_TYPE_PROG_ARRAY, NULL, sizeof(int), in create_prog_array()
645 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(int), in create_map_in_map()
655 outer_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY_OF_MAPS, NULL, in create_map_in_map()
675 fd = bpf_map_create(type, NULL, sizeof(struct bpf_cgroup_storage_key), in create_cgroup_storage()
817 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "test_map", 4, 8, 1, &opts); in create_map_spin_lock()
836 fd = bpf_map_create(BPF_MAP_TYPE_SK_STORAGE, "test_map", 4, 8, 0, &opts); in create_sk_storage_map()
856 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "test_map", 4, 16, 1, &opts); in create_map_timer()
875 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "test_map", 4, 24, 1, &opts); in create_map_kptr()
Dtest_tag.c194 fd_map = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(int), in main()
/Linux-v6.1/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c151 map_fd = bpf_map_create(BPF_MAP_TYPE_SK_STORAGE, "sk_storage_map", 4, 8, 0, &map_opts); in create_sk_storage_map()
474 map_fd = bpf_map_create(BPF_MAP_TYPE_SK_STORAGE, "sk_storage_map", 4, 8, 0, &map_opts); in test_sk_storage_map_basic()
565 err = bpf_map_create(BPF_MAP_TYPE_SK_STORAGE, "sk_storage_map", 4, 8, 0, &bad_xattr); in test_sk_storage_map_basic()
571 err = bpf_map_create(BPF_MAP_TYPE_SK_STORAGE, "sk_storage_map", 4, 8, 0, &bad_xattr); in test_sk_storage_map_basic()
575 err = bpf_map_create(BPF_MAP_TYPE_SK_STORAGE, "sk_storage_map", 4, 8, 1, &map_opts); in test_sk_storage_map_basic()
581 err = bpf_map_create(BPF_MAP_TYPE_SK_STORAGE, "sk_storage_map", 4, 8, 0, &bad_xattr); in test_sk_storage_map_basic()
Dmap_in_map_batch_ops.c41 map_fd = bpf_map_create(map_type, map_name, sizeof(__u32), in create_inner_maps()
72 outer_map_fd = bpf_map_create(map_type, "outer_map", sizeof(__u32), in create_outer_map()
Darray_map_batch_ops.c83 map_fd = bpf_map_create(is_pcpu ? BPF_MAP_TYPE_PERCPU_ARRAY : BPF_MAP_TYPE_ARRAY, in __test_map_lookup_and_update_batch()
Dlpm_trie_map_batch_ops.c80 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, "lpm_trie_map", in test_lpm_trie_map_batch_ops()
/Linux-v6.1/tools/build/feature/
Dtest-libbpf-bpf_map_create.c6 return bpf_map_create(0 /* map_type */, NULL /* map_name */, 0, /* key_size */, in main()
DMakefile63 test-libbpf-bpf_map_create.bin \
311 $(OUTPUT)test-libbpf-bpf_map_create.bin:
/Linux-v6.1/tools/testing/selftests/bpf/benchs/
Dbench_local_storage.c147 fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(int), in __setup()
150 fd = bpf_map_create(BPF_MAP_TYPE_TASK_STORAGE, NULL, sizeof(int), in __setup()
/Linux-v6.1/samples/bpf/
Dtest_cgrp2_array_pin.c67 array_fd = bpf_map_create(BPF_MAP_TYPE_CGROUP_ARRAY, NULL, in main()
Dsock_example.c41 map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(key), sizeof(value), in test_sock()
Dtest_cgrp2_attach.c97 map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, in attach_filter()
Dfds_example.c83 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(uint32_t), in bpf_do_map()
Dtest_lru_dist.c107 lru->map_fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, in pfect_lru_init()
214 map_fd = bpf_map_create(map_type, NULL, sizeof(unsigned long long), in create_map()
Dcookie_uid_helper_example.c70 map_fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(uint32_t), in maps_create()
/Linux-v6.1/tools/lib/bpf/
Dlibbpf_probes.c274 fd_inner = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, in probe_map_create()
288 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, &opts); in probe_map_create()
Dlibbpf.map292 bpf_map_create;

12