Home
last modified time | relevance | path

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

12

/tools/testing/selftests/bpf/prog_tests/
A Dbloom_filter_map.c20 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 4, sizeof(value), 100, NULL); in test_fail_cases()
25 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, 0, 100, NULL); in test_fail_cases()
30 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, INT32_MAX, 100, NULL); in test_fail_cases()
35 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 0, NULL); in test_fail_cases()
41 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 100, &opts); in test_fail_cases()
45 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 100, NULL); in test_fail_cases()
77 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 100, &opts); in test_success_cases()
116 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(*rand_vals), in test_inner_map()
A Dmap_in_map.c38 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 4, 1, NULL); in update_map_fn()
137 inner_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "arr1", 4, 4, 1, NULL); in add_del_fd_htab()
155 inner_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "arr1", 4, 4, 1, NULL); in overwrite_fd_htab()
164 inner_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "arr2", 4, 4, 1, NULL); in overwrite_fd_htab()
184 inner_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "arr1", 4, 4, 1, NULL); in lookup_delete_fd_htab()
206 inner_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "arr1", 4, 4, 1, NULL); in batched_lookup_delete_fd_htab()
215 inner_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "arr2", 4, 4, 1, NULL); in batched_lookup_delete_fd_htab()
A Dfd_htab_lookup.c74 inner_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 4, 1, NULL); in htab_update_fn()
108 inner_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 4, 1, NULL); in setup_htab()
A 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()
A Dmap_btf.c30 map_fd_arr[i] = bpf_map_create(BPF_MAP_TYPE_PERCPU_ARRAY, NULL, 4, 4, 256, NULL); in do_test_normal_map_btf()
A Dbpf_obj_pinning.c75 map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, map_name, 4, 4, 1, NULL); in bpf_obj_pinning_detached()
250 map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, map_name, 4, 4, 1, NULL); in bpf_obj_pinning_mounted()
A Dringbuf_multi.c62 proto_fd = bpf_map_create(BPF_MAP_TYPE_RINGBUF, NULL, 0, 0, page_size, NULL); in test_ringbuf_multi()
A Dtest_bpffs.c89 map = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 4, 1, NULL); in fn()
A Dtoken.c524 map_fd = bpf_map_create(BPF_MAP_TYPE_STACK, "wo_token_wo_bpf", 0, 8, 1, &map_opts); in userns_map_create()
533 map_fd = bpf_map_create(BPF_MAP_TYPE_STACK, "w_token_wo_bpf", 0, 8, 1, &map_opts); in userns_map_create()
547 map_fd = bpf_map_create(BPF_MAP_TYPE_STACK, "wo_token_w_bpf", 0, 8, 1, &map_opts); in userns_map_create()
556 map_fd = bpf_map_create(BPF_MAP_TYPE_STACK, "w_token_w_bpf", 0, 8, 1, &map_opts); in userns_map_create()
A Dpinning.c244 map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(__u32), in test_pinning()
/tools/testing/selftests/bpf/
A Dtest_maps.c135 fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, i, j, 2, &map_opts); in test_hashmap_sizes()
156 fd = bpf_map_create(BPF_MAP_TYPE_PERCPU_HASH, NULL, sizeof(key), in test_hashmap_percpu()
269 fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(key), sizeof(value), in helper_fill_hashmap()
417 fd = bpf_map_create(BPF_MAP_TYPE_PERCPU_ARRAY, NULL, sizeof(key), in test_arraymap_percpu()
480 fd = bpf_map_create(BPF_MAP_TYPE_PERCPU_ARRAY, NULL, sizeof(key), in test_arraymap_percpu_many_keys()
734 fd = bpf_map_create(BPF_MAP_TYPE_SOCKMAP, NULL, in test_sockmap()
1314 fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(key), sizeof(value), in test_map_large()
1478 fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(key), sizeof(value), in test_map_parallel()
1538 fd = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(key), sizeof(value), in test_map_rdonly()
1728 map_fd = bpf_map_create(BPF_MAP_TYPE_REUSEPORT_SOCKARRAY, NULL, in test_reuseport_array()
[all …]
A Dtest_verifier.c549 fd = bpf_map_create(type, NULL, size_key, size_value, max_elem, &opts); in __create_map()
605 mfd = bpf_map_create(BPF_MAP_TYPE_PROG_ARRAY, NULL, sizeof(int), in create_prog_array()
639 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(int), in create_map_in_map()
649 outer_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY_OF_MAPS, NULL, in create_map_in_map()
669 fd = bpf_map_create(type, NULL, sizeof(struct bpf_cgroup_storage_key), in create_cgroup_storage()
811 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "test_map", 4, 8, 1, &opts); in create_map_spin_lock()
830 fd = bpf_map_create(BPF_MAP_TYPE_SK_STORAGE, "test_map", 4, 8, 0, &opts); in create_sk_storage_map()
850 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "test_map", 4, 16, 1, &opts); in create_map_timer()
869 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "test_map", 4, 24, 1, &opts); in create_map_kptr()
A Dtest_tag.c194 fd_map = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(int), in main()
/tools/testing/selftests/bpf/map_tests/
A 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()
A 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()
A Dmap_percpu_stats.c152 map_fd = bpf_map_create(BPF_MAP_TYPE_HASH, "small", 4, 4, 4, NULL); in create_small_hash()
349 map_fd = bpf_map_create(type, name, key_size, val_size, max_entries, map_opts); in map_create_opts()
469 fd = bpf_map_create(map_types[i], NULL, sizeof(__u32), value_sz, 1, &opts); in map_percpu_stats_map_value_size()
A Dlpm_trie_map_get_next_key.c75 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, "lpm_trie_map", in test_lpm_trie_map_get_next_key()
A Dlpm_trie_map_basic_ops.c255 map = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, in test_lpm_map()
365 map_fd_ipv4 = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, in test_lpm_ipaddr()
370 map_fd_ipv6 = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, in test_lpm_ipaddr()
452 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, in test_lpm_delete()
562 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, key_size, sizeof(value), 100, &opts); in test_lpm_get_next_key()
774 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, NULL, key_size, value_size, 100, &opts); in test_lpm_multi_thread()
797 fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, "lpm_trie", key_size, value_size, max_entries, in lpm_trie_create()
A 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()
A 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()
A Dhtab_map_batch_ops.c92 map_fd = bpf_map_create(is_pcpu ? BPF_MAP_TYPE_PERCPU_HASH : BPF_MAP_TYPE_HASH, in __test_map_lookup_and_delete_batch()
/tools/testing/selftests/bpf/benchs/
A 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()
/tools/lib/bpf/
A Dfeatures.c66 map = bpf_map_create(BPF_MAP_TYPE_ARRAY, "libbpf_global", sizeof(int), 32, 1, &map_opts); in probe_kern_global_data()
220 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "libbpf_mmap", sizeof(int), sizeof(int), 1, &opts); in probe_kern_array_mmap()
282 map = bpf_map_create(BPF_MAP_TYPE_ARRAY, "libbpf_det_bind", sizeof(int), 32, 1, &map_opts); in probe_prog_bind_map()
A Dlibbpf_probes.c374 fd_inner = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, in probe_map_create()
388 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, &opts); in probe_map_create()
A Dlibbpf.map291 bpf_map_create;

Completed in 38 milliseconds

12