Searched refs:map_opts (Results 1 – 5 of 5) sorted by relevance
| /linux/tools/testing/selftests/bpf/map_tests/ |
| A D | map_percpu_stats.c | 338 struct bpf_map_create_opts *map_opts, in map_create_opts() argument 358 return map_create_opts(type, name, map_opts, sizeof(int), sizeof(int)); in map_create() 363 LIBBPF_OPTS(bpf_map_create_opts, map_opts, .map_flags = BPF_F_NO_PREALLOC); in create_hash() 365 return map_create(BPF_MAP_TYPE_HASH, "hash", &map_opts); in create_hash() 370 LIBBPF_OPTS(bpf_map_create_opts, map_opts, .map_flags = BPF_F_NO_PREALLOC); in create_percpu_hash() 372 return map_create(BPF_MAP_TYPE_PERCPU_HASH, "percpu_hash", &map_opts); in create_percpu_hash() 387 LIBBPF_OPTS(bpf_map_create_opts, map_opts, .map_flags = map_flags); in create_lru_hash() 389 return map_create(type, "lru_hash", &map_opts); in create_lru_hash() 394 LIBBPF_OPTS(bpf_map_create_opts, map_opts, in create_hash_of_maps() 401 &map_opts, sizeof(int), sizeof(int)); in create_hash_of_maps() [all …]
|
| 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() 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() 579 memcpy(&bad_xattr, &map_opts, sizeof(map_opts)); in test_sk_storage_map_basic() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| A D | test_maps.c | 35 static struct bpf_map_create_opts map_opts = { .sz = sizeof(map_opts) }; variable 274 max_entries, &map_opts); in helper_fill_hashmap() 333 old_flags = map_opts.map_flags; in test_hashmap_zero_seed() 356 map_opts.map_flags = old_flags; in test_hashmap_zero_seed() 1319 MAP_SIZE, &map_opts); in test_map_large() 1482 MAP_SIZE, &map_opts); in test_map_parallel() 1539 old_flags = map_opts.map_flags; in test_map_rdonly() 1542 MAP_SIZE, &map_opts); in test_map_rdonly() 1543 map_opts.map_flags = old_flags; in test_map_rdonly() 1571 MAP_SIZE, &map_opts); in test_map_wronly_hash() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A D | token.c | 500 LIBBPF_OPTS(bpf_map_create_opts, map_opts); in userns_map_create() 520 map_opts.map_flags = 0; in userns_map_create() 521 map_opts.token_fd = 0; in userns_map_create() 529 map_opts.map_flags = BPF_F_TOKEN_FD; in userns_map_create() 530 map_opts.token_fd = token_fd; in userns_map_create() 531 map_fd = bpf_map_create(BPF_MAP_TYPE_STACK, "w_token_wo_bpf", 0, 8, 1, &map_opts); in userns_map_create() 543 map_opts.map_flags = 0; in userns_map_create() 544 map_opts.token_fd = 0; in userns_map_create() 552 map_opts.map_flags = BPF_F_TOKEN_FD; in userns_map_create() 553 map_opts.token_fd = token_fd; in userns_map_create() [all …]
|
| /linux/tools/lib/bpf/ |
| A D | features.c | 57 LIBBPF_OPTS(bpf_map_create_opts, map_opts, in probe_kern_global_data() 67 map = bpf_map_create(BPF_MAP_TYPE_ARRAY, "libbpf_global", sizeof(int), 32, 1, &map_opts); in probe_kern_global_data() 275 LIBBPF_OPTS(bpf_map_create_opts, map_opts, in probe_prog_bind_map() 285 map = bpf_map_create(BPF_MAP_TYPE_ARRAY, "libbpf_det_bind", sizeof(int), 32, 1, &map_opts); in probe_prog_bind_map()
|
Completed in 21 milliseconds