Home
last modified time | relevance | path

Searched refs:bpf_create_map (Results 1 – 25 of 26) sorted by relevance

12

/linux/tools/testing/selftests/bpf/prog_tests/
A Dbloom_filter_map.c14 fd = bpf_create_map(BPF_MAP_TYPE_BLOOM_FILTER, 4, sizeof(value), 100, 0); in test_fail_cases()
19 fd = bpf_create_map(BPF_MAP_TYPE_BLOOM_FILTER, 0, 0, 100, 0); in test_fail_cases()
24 fd = bpf_create_map(BPF_MAP_TYPE_BLOOM_FILTER, 0, sizeof(value), 0, 0); in test_fail_cases()
29 fd = bpf_create_map(BPF_MAP_TYPE_BLOOM_FILTER, 0, sizeof(value), 100, in test_fail_cases()
34 fd = bpf_create_map(BPF_MAP_TYPE_BLOOM_FILTER, 0, sizeof(value), 100, 0); in test_fail_cases()
63 fd = bpf_create_map(BPF_MAP_TYPE_BLOOM_FILTER, 0, sizeof(value), 100, in test_success_cases()
103 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_BLOOM_FILTER, 0, sizeof(*rand_vals), in test_inner_map()
A Dcgroup_attach_multi.c18 map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 8, 1, 0); in prog_load_cnt()
24 cgroup_storage_fd = bpf_create_map(BPF_MAP_TYPE_CGROUP_STORAGE, in prog_load_cnt()
31 percpu_cgroup_storage_fd = bpf_create_map( in prog_load_cnt()
A Dsockmap_ktls.c100 map = bpf_create_map(map_type, sizeof(int), sizeof(int), 1, 0); in run_tests()
A Dringbuf_multi.c65 proto_fd = bpf_create_map(BPF_MAP_TYPE_RINGBUF, 0, 0, page_size, 0); in test_ringbuf_multi()
A Dtest_bpffs.c83 map = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 4, 1, 0); in fn()
A Dpinning.c244 map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(__u32), in test_pinning()
A Dsockmap_basic.c94 map = bpf_create_map(map_type, sizeof(int), sizeof(int), 1, 0); in test_sockmap_create_update_free()
A Dbpf_iter.c472 map1_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 8, 1, 0); in test_overflow()
476 map2_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 8, 1, 0); in test_overflow()
/linux/tools/testing/selftests/bpf/
A Dtest_maps.c42 fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), in test_hashmap()
140 fd = bpf_create_map(BPF_MAP_TYPE_HASH, i, j, in test_hashmap_sizes()
162 fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_HASH, sizeof(key), in test_hashmap_percpu()
274 fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), in helper_fill_hashmap()
423 fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_ARRAY, sizeof(key), in test_arraymap_percpu()
486 fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_ARRAY, sizeof(key), in test_arraymap_percpu_many_keys()
554 fd = bpf_create_map(BPF_MAP_TYPE_QUEUE, 4, sizeof(val), MAP_SIZE, in test_queuemap()
746 fd = bpf_create_map(BPF_MAP_TYPE_SOCKMAP, in test_sockmap()
1572 fd = bpf_create_map(map_type, 0, sizeof(value), MAP_SIZE, in test_map_wronly_stack_or_queue()
1702 map_fd = bpf_create_map(BPF_MAP_TYPE_REUSEPORT_SOCKARRAY, in test_reuseport_array()
[all …]
A Dtest_cgroup_storage.c53 map_fd = bpf_create_map(BPF_MAP_TYPE_CGROUP_STORAGE, sizeof(key), in main()
60 percpu_map_fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE, in main()
A Dtest_lpm_map.c236 map = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, in test_lpm_map()
345 map_fd_ipv4 = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, in test_lpm_ipaddr()
350 map_fd_ipv6 = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, in test_lpm_ipaddr()
434 map_fd = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, in test_lpm_delete()
547 map_fd = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, key_size, sizeof(value), in test_lpm_get_next_key()
765 map_fd = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, key_size, value_size, in test_lpm_multi_thread()
A Dtest_tag.c190 fd_map = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(int), in main()
A Dtest_verifier.c467 fd = bpf_create_map(type, size_key, size_value, max_elem, in __create_map()
527 mfd = bpf_create_map(BPF_MAP_TYPE_PROG_ARRAY, sizeof(int), in create_prog_array()
560 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in create_map_in_map()
589 fd = bpf_create_map(type, sizeof(struct bpf_cgroup_storage_key), in create_cgroup_storage()
A Dtest_lru_map.c33 map_fd = bpf_create_map(map_type, sizeof(unsigned long long), in create_map()
/linux/samples/bpf/
A Dtest_cgrp2_array_pin.c67 array_fd = bpf_create_map(BPF_MAP_TYPE_CGROUP_ARRAY, in main()
A Dsock_example.c40 map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(key), sizeof(value), in test_sock()
A Dtest_cgrp2_attach.c93 map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, in attach_filter()
A Dfds_example.c51 return bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(uint32_t), in bpf_map_create()
A Dtest_lru_dist.c108 lru->map_fd = bpf_create_map(BPF_MAP_TYPE_HASH, in pfect_lru_init()
212 map_fd = bpf_create_map(map_type, sizeof(unsigned long long), in create_map()
A Dcookie_uid_helper_example.c70 map_fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(uint32_t), in maps_create()
/linux/tools/lib/bpf/
A Dlibbpf.map4 bpf_create_map;
A Dlibbpf_probes.c282 fd_inner = bpf_create_map(BPF_MAP_TYPE_HASH, in bpf_probe_map_type()
A Dbpf.h63 LIBBPF_API int bpf_create_map(enum bpf_map_type map_type, int key_size,
A Dbpf.c164 int bpf_create_map(enum bpf_map_type map_type, int key_size, in bpf_create_map() function
/linux/tools/perf/util/
A Dbpf_counter.c323 map_fd = bpf_create_map(BPF_MAP_TYPE_HASH, in bperf_lock_attr_map()

Completed in 39 milliseconds

12