Home
last modified time | relevance | path

Searched refs:bpf_map_create_opts (Results 1 – 25 of 26) sorted by relevance

12

/linux/tools/testing/selftests/bpf/map_tests/
H A Dmap_percpu_stats.c338 struct bpf_map_create_opts *map_opts, in map_create_opts()
356 static int map_create(__u32 type, const char *name, struct bpf_map_create_opts *map_opts) in map_create()
363 LIBBPF_OPTS(bpf_map_create_opts, map_opts, .map_flags = BPF_F_NO_PREALLOC); in create_hash()
370 LIBBPF_OPTS(bpf_map_create_opts, map_opts, .map_flags = BPF_F_NO_PREALLOC); in create_percpu_hash()
387 LIBBPF_OPTS(bpf_map_create_opts, map_opts, .map_flags = map_flags); in create_lru_hash()
394 LIBBPF_OPTS(bpf_map_create_opts, map_opts, in create_hash_of_maps()
464 struct bpf_map_create_opts opts = { .sz = sizeof(opts) }; in map_percpu_stats_map_value_size()
H A Dlpm_trie_map_get_next_key.c63 LIBBPF_OPTS(bpf_map_create_opts, create_opts, in test_lpm_trie_map_get_next_key()
H A Dlpm_trie_map_basic_ops.c228 LIBBPF_OPTS(bpf_map_create_opts, opts, .map_flags = BPF_F_NO_PREALLOC); in test_lpm_map()
351 LIBBPF_OPTS(bpf_map_create_opts, opts, .map_flags = BPF_F_NO_PREALLOC); in test_lpm_ipaddr()
443 LIBBPF_OPTS(bpf_map_create_opts, opts, .map_flags = BPF_F_NO_PREALLOC); in test_lpm_delete()
552 LIBBPF_OPTS(bpf_map_create_opts, opts, .map_flags = BPF_F_NO_PREALLOC); in test_lpm_get_next_key()
764 LIBBPF_OPTS(bpf_map_create_opts, opts, .map_flags = BPF_F_NO_PREALLOC); in test_lpm_multi_thread()
793 LIBBPF_OPTS(bpf_map_create_opts, opts); in lpm_trie_create()
H A Dsk_storage_map.c22 static struct bpf_map_create_opts map_opts = {
462 struct bpf_map_create_opts bad_xattr; in test_sk_storage_map_basic()
H A Dmap_in_map_batch_ops.c69 LIBBPF_OPTS(bpf_map_create_opts, attr); in create_outer_map()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbloom_filter_map.c15 LIBBPF_OPTS(bpf_map_create_opts, opts); in test_fail_cases()
70 LIBBPF_OPTS(bpf_map_create_opts, opts); in test_success_cases()
H A Dselect_reuseport.c66 LIBBPF_OPTS(bpf_map_create_opts, opts); in create_maps()
H A Dtoken.c502 LIBBPF_OPTS(bpf_map_create_opts, map_opts); in userns_map_create()
H A Dbtf.c4400 LIBBPF_OPTS(bpf_map_create_opts, opts); in do_test_raw()
4610 LIBBPF_OPTS(bpf_map_create_opts, opts); in test_btf_id()
5463 LIBBPF_OPTS(bpf_map_create_opts, opts); in do_test_pprint()
/linux/tools/lib/bpf/
H A Dfeatures.c56 LIBBPF_OPTS(bpf_map_create_opts, map_opts, in probe_kern_global_data()
214 LIBBPF_OPTS(bpf_map_create_opts, opts, in probe_kern_array_mmap()
272 LIBBPF_OPTS(bpf_map_create_opts, map_opts, in probe_prog_bind_map()
H A Dbpf_gen_internal.h62 struct bpf_map_create_opts *map_attr, int map_idx);
H A Dbpf.h40 struct bpf_map_create_opts { struct
66 const struct bpf_map_create_opts *opts); argument
59 szbpf_map_create_opts global() argument
H A Dbpf.c173 const struct bpf_map_create_opts *opts) in bpf_map_create()
183 if (!OPTS_VALID(opts, bpf_map_create_opts)) in bpf_map_create()
H A Dgen_loader.c485 struct bpf_map_create_opts *map_attr, int map_idx) in bpf_gen__map_create()
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c545 LIBBPF_OPTS(bpf_map_create_opts, opts); in __create_map()
636 LIBBPF_OPTS(bpf_map_create_opts, opts); in create_map_in_map()
801 LIBBPF_OPTS(bpf_map_create_opts, opts, in create_map_spin_lock()
819 LIBBPF_OPTS(bpf_map_create_opts, opts, in create_sk_storage_map()
839 LIBBPF_OPTS(bpf_map_create_opts, opts, in create_map_timer()
858 LIBBPF_OPTS(bpf_map_create_opts, opts, in create_map_kptr()
H A Dtest_tag.c187 LIBBPF_OPTS(bpf_map_create_opts, opts, .map_flags = BPF_F_NO_PREALLOC); in main()
H A Dtest_lru_map.c30 LIBBPF_OPTS(bpf_map_create_opts, opts, .map_flags = map_flags); in create_map()
H A Dtest_maps.c31 static struct bpf_map_create_opts map_opts = { .sz = sizeof(map_opts) };
/linux/Documentation/bpf/
H A Dmap_array.rst145 This snippet shows how to create an array, using ``bpf_map_create_opts`` to
156 LIBBPF_OPTS(bpf_map_create_opts, opts, .map_flags = BPF_F_MMAPABLE);
H A Dmap_of_maps.rst98 LIBBPF_OPTS(bpf_map_create_opts, opts, .inner_map_fd = inner_fd);
H A Dmap_bloom_filter.rst149 LIBBPF_OPTS(bpf_map_create_opts, opts,
/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_local_storage.c120 LIBBPF_OPTS(bpf_map_create_opts, create_opts); in __setup()
/linux/samples/bpf/
H A Dmap_perf_test_user.c136 LIBBPF_OPTS(bpf_map_create_opts, opts, in do_test_lru()
H A Dtest_lru_dist.c204 LIBBPF_OPTS(bpf_map_create_opts, opts, in create_map()
/linux/tools/bpf/bpftool/
H A Dfeature.c595 LIBBPF_OPTS(bpf_map_create_opts, opts); in probe_map_type_ifindex()

12