Searched refs:map_opts (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.1/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 22 static struct bpf_map_create_opts map_opts = { variable 23 .sz = sizeof(map_opts), 149 map_opts.btf_fd = btf_fd; in create_sk_storage_map() 151 map_fd = bpf_map_create(BPF_MAP_TYPE_SK_STORAGE, "sk_storage_map", 4, 8, 0, &map_opts); in create_sk_storage_map() 152 map_opts.btf_fd = -1; in create_sk_storage_map() 468 map_opts.btf_fd = btf_fd; in test_sk_storage_map_basic() 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() 563 memcpy(&bad_xattr, &map_opts, sizeof(map_opts)); in test_sk_storage_map_basic() 569 memcpy(&bad_xattr, &map_opts, sizeof(map_opts)); 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() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_maps.c | 35 static struct bpf_map_create_opts map_opts = { .sz = sizeof(map_opts) }; variable 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() 161 sizeof(bpf_percpu(value, 0)), 2, &map_opts); in test_hashmap_percpu() 274 max_entries, &map_opts); in helper_fill_hashmap() 277 "err: %s, flags: 0x%x\n", strerror(errno), map_opts.map_flags); in helper_fill_hashmap() 333 old_flags = map_opts.map_flags; in test_hashmap_zero_seed() 334 map_opts.map_flags |= BPF_F_ZERO_SEED; in test_hashmap_zero_seed() 356 map_opts.map_flags = old_flags; in test_hashmap_zero_seed() 550 fd = bpf_map_create(BPF_MAP_TYPE_QUEUE, NULL, 4, sizeof(val), MAP_SIZE, &map_opts); in test_queuemap() [all …]
|