Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/bpf/
Dtest_maps.c42 fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), in test_hashmap()
133 fd = bpf_create_map(BPF_MAP_TYPE_HASH, i, j, in test_hashmap_sizes()
155 fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_HASH, sizeof(key), in test_hashmap_percpu()
257 fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), in helper_fill_hashmap()
350 fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(key), sizeof(value), in test_arraymap()
406 fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_ARRAY, sizeof(key), in test_arraymap_percpu()
469 fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_ARRAY, sizeof(key), in test_arraymap_percpu_many_keys()
501 fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value), in test_devmap()
516 fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP_HASH, sizeof(key), sizeof(value), in test_devmap_hash()
537 fd = bpf_create_map(BPF_MAP_TYPE_QUEUE, 4, sizeof(val), MAP_SIZE, in test_queuemap()
[all …]
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()
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()
Dtest_tag.c190 fd_map = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(int), in main()
Dtest_verifier.c385 fd = bpf_create_map(type, size_key, size_value, max_elem, in __create_map()
445 mfd = bpf_create_map(BPF_MAP_TYPE_PROG_ARRAY, sizeof(int), in create_prog_array()
478 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in create_map_in_map()
507 fd = bpf_create_map(type, sizeof(struct bpf_cgroup_storage_key), in create_cgroup_storage()
Dtest_lru_map.c33 map_fd = bpf_create_map(map_type, sizeof(unsigned long long), in create_map()
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
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()
Dsockmap_ktls.c100 map = bpf_create_map(map_type, sizeof(int), sizeof(int), 1, 0); in run_tests()
Dbtf_map_in_map.c36 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 4, 1, 0); in kern_sync_rcu()
Dpinning.c235 map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(__u32), in test_pinning()
Dsockmap_basic.c92 map = bpf_create_map(map_type, sizeof(int), sizeof(int), 1, 0); in test_sockmap_create_update_free()
Dbpf_iter.c446 map1_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 8, 1, 0); in test_overflow()
450 map2_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 8, 1, 0); in test_overflow()
Dsockmap_listen.c503 mapfd = bpf_create_map(BPF_MAP_TYPE_SOCKMAP, sizeof(key), in test_lookup_32_bit_value()
/Linux-v5.10/samples/bpf/
Dtest_cgrp2_array_pin.c67 array_fd = bpf_create_map(BPF_MAP_TYPE_CGROUP_ARRAY, in main()
Dsock_example.c40 map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(key), sizeof(value), in test_sock()
Dtest_cgrp2_attach.c92 map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, in attach_filter()
Dfds_example.c51 return bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(uint32_t), in bpf_map_create()
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()
Dcookie_uid_helper_example.c70 map_fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(uint32_t), in maps_create()
/Linux-v5.10/tools/lib/bpf/
Dlibbpf.map4 bpf_create_map;
Dlibbpf_probes.c279 fd_inner = bpf_create_map(BPF_MAP_TYPE_HASH, in bpf_probe_map_type()
Dbpf.h63 LIBBPF_API int bpf_create_map(enum bpf_map_type map_type, int key_size,
Dbpf.c127 int bpf_create_map(enum bpf_map_type map_type, int key_size, in bpf_create_map() function