/tools/testing/selftests/bpf/prog_tests/ |
D | bloom_filter_map.c | 16 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 4, sizeof(value), 100, NULL); in test_fail_cases() 21 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, 0, 100, NULL); in test_fail_cases() 26 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, INT32_MAX, 100, NULL); in test_fail_cases() 31 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 0, NULL); in test_fail_cases() 37 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 100, &opts); in test_fail_cases() 41 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 100, NULL); in test_fail_cases() 72 fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(value), 100, &opts); in test_success_cases() 111 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(*rand_vals), in test_inner_map()
|
D | cgroup_attach_multi.c | 18 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()
|
D | bpf_obj_pinning.c | 75 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()
|
D | ringbuf_multi.c | 60 proto_fd = bpf_map_create(BPF_MAP_TYPE_RINGBUF, NULL, 0, 0, page_size, NULL); in test_ringbuf_multi()
|
D | sockmap_ktls.c | 153 map = bpf_map_create(map_type, NULL, sizeof(int), sizeof(int), 1, NULL); in run_tests()
|
D | test_bpffs.c | 85 map = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 4, 1, NULL); in fn()
|
D | pinning.c | 244 map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(__u32), in test_pinning()
|
D | unpriv_bpf_disabled.c | 179 ASSERT_EQ(bpf_map_create(i, NULL, sizeof(int), sizeof(int), 1, NULL), in test_unpriv_bpf_disabled_negative()
|
D | select_reuseport.c | 73 reuseport_array = bpf_map_create(inner_type, "reuseport_array", in create_maps() 80 outer_map = bpf_map_create(BPF_MAP_TYPE_ARRAY_OF_MAPS, "outer_map", in create_maps()
|
/tools/testing/selftests/bpf/ |
D | test_maps.c | 42 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 …]
|
D | test_cgroup_storage.c | 57 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()
|
D | test_lpm_map.c | 237 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()
|
D | test_verifier.c | 551 fd = bpf_map_create(type, NULL, size_key, size_value, max_elem, &opts); in __create_map() 607 mfd = bpf_map_create(BPF_MAP_TYPE_PROG_ARRAY, NULL, sizeof(int), in create_prog_array() 641 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(int), in create_map_in_map() 651 outer_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY_OF_MAPS, NULL, in create_map_in_map() 671 fd = bpf_map_create(type, NULL, sizeof(struct bpf_cgroup_storage_key), in create_cgroup_storage() 813 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "test_map", 4, 8, 1, &opts); in create_map_spin_lock() 832 fd = bpf_map_create(BPF_MAP_TYPE_SK_STORAGE, "test_map", 4, 8, 0, &opts); in create_sk_storage_map() 852 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "test_map", 4, 16, 1, &opts); in create_map_timer() 871 fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, "test_map", 4, 24, 1, &opts); in create_map_kptr()
|
D | test_tag.c | 194 fd_map = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, sizeof(int), in main()
|
D | test_lru_map.c | 33 map_fd = bpf_map_create(map_type, NULL, sizeof(unsigned long long), in create_map() 69 mfd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(int), sizeof(__u64), 1, NULL); in bpf_map_lookup_elem_with_ref_bit()
|
/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 151 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()
|
D | map_in_map_batch_ops.c | 41 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()
|
D | map_percpu_stats.c | 144 map_fd = bpf_map_create(BPF_MAP_TYPE_HASH, "small", 4, 4, 4, NULL); in create_small_hash() 315 map_fd = bpf_map_create(type, name, key_size, val_size, max_entries, map_opts); in map_create_opts()
|
D | array_map_batch_ops.c | 83 map_fd = bpf_map_create(is_pcpu ? BPF_MAP_TYPE_PERCPU_ARRAY : BPF_MAP_TYPE_ARRAY, in __test_map_lookup_and_update_batch()
|
D | lpm_trie_map_batch_ops.c | 80 map_fd = bpf_map_create(BPF_MAP_TYPE_LPM_TRIE, "lpm_trie_map", in test_lpm_trie_map_batch_ops()
|
D | htab_map_batch_ops.c | 92 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/ |
D | bench_local_storage.c | 147 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/ |
D | libbpf_probes.c | 361 fd_inner = bpf_map_create(BPF_MAP_TYPE_HASH, NULL, in probe_map_create() 375 fd = bpf_map_create(map_type, NULL, key_size, value_size, max_entries, &opts); in probe_map_create()
|
D | libbpf.map | 292 bpf_map_create;
|
D | bpf.h | 57 LIBBPF_API int bpf_map_create(enum bpf_map_type map_type,
|