Home
last modified time | relevance | path

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

/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_maps.c50 fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), in test_hashmap()
141 fd = bpf_create_map(BPF_MAP_TYPE_HASH, i, j, in test_hashmap_sizes()
163 fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_HASH, sizeof(key), in test_hashmap_percpu()
266 fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), in test_hashmap_walk()
313 fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(key), sizeof(value), in test_arraymap()
369 fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_ARRAY, sizeof(key), in test_arraymap_percpu()
432 fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_ARRAY, sizeof(key), in test_arraymap_percpu_many_keys()
464 fd = bpf_create_map(BPF_MAP_TYPE_DEVMAP, sizeof(key), sizeof(value), in test_devmap()
562 fd = bpf_create_map(BPF_MAP_TYPE_SOCKMAP, in test_sockmap()
977 fd = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(key), sizeof(value), in test_map_large()
[all …]
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()
537 map_fd = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, key_size, sizeof(value), in test_lpm_get_next_key()
720 map_fd = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, key_size, value_size, in test_lpm_multi_thread()
Dtest_cgroup_storage.c35 map_fd = bpf_create_map(BPF_MAP_TYPE_CGROUP_STORAGE, sizeof(key), in main()
Dtest_tag.c190 fd_map = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(int), in main()
Dtest_lru_map.c34 map_fd = bpf_create_map(map_type, sizeof(unsigned long long), in create_map()
Dtest_verifier.c12531 fd = bpf_create_map(type, size_key, size_value, max_elem, in create_map()
12570 mfd = bpf_create_map(BPF_MAP_TYPE_PROG_ARRAY, sizeof(int), in create_prog_array()
12600 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in create_map_in_map()
12622 fd = bpf_create_map(BPF_MAP_TYPE_CGROUP_STORAGE, in create_cgroup_storage()
/Linux-v4.19/samples/bpf/
Dtest_cgrp2_array_pin.c70 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_attach2.c215 map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 8, 1, 0); in prog_load_cnt()
221 cgroup_storage_fd = bpf_create_map(BPF_MAP_TYPE_CGROUP_STORAGE, in prog_load_cnt()
Dtest_cgrp2_attach.c92 map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, in attach_filter()
Dfds_example.c49 return bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(uint32_t), in bpf_map_create()
Dtest_lru_dist.c111 lru->map_fd = bpf_create_map(BPF_MAP_TYPE_HASH, in pfect_lru_init()
215 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-v4.19/tools/lib/bpf/
Dbpf.h52 int bpf_create_map(enum bpf_map_type map_type, int key_size, int value_size,
Dbpf.c120 int bpf_create_map(enum bpf_map_type map_type, int key_size, in bpf_create_map() function