Searched refs:map_opts (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | map_percpu_stats.c | 304 struct bpf_map_create_opts *map_opts, in map_create_opts() argument 315 map_fd = bpf_map_create(type, name, key_size, val_size, max_entries, map_opts); in map_create_opts() 322 static int map_create(__u32 type, const char *name, struct bpf_map_create_opts *map_opts) in map_create() argument 324 return map_create_opts(type, name, map_opts, sizeof(int), sizeof(int)); in map_create() 329 struct bpf_map_create_opts map_opts = { in create_hash() local 330 .sz = sizeof(map_opts), in create_hash() 334 return map_create(BPF_MAP_TYPE_HASH, "hash", &map_opts); in create_hash() 339 struct bpf_map_create_opts map_opts = { in create_percpu_hash() local 340 .sz = sizeof(map_opts), in create_percpu_hash() 344 return map_create(BPF_MAP_TYPE_PERCPU_HASH, "percpu_hash", &map_opts); in create_percpu_hash() [all …]
|
H A 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 …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A 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 …]
|