Home
last modified time | relevance | path

Searched refs:bpf_map_type (Results 1 – 25 of 32) sorted by relevance

12

/linux/tools/testing/selftests/bpf/map_tests/
H A Dmap_in_map_batch_ops.c31 static void create_inner_maps(enum bpf_map_type map_type, in create_inner_maps()
66 static int create_outer_map(enum bpf_map_type map_type, __u32 inner_map_fd) in create_outer_map()
187 static void _map_in_map_batch_ops(enum bpf_map_type outer_map_type, in _map_in_map_batch_ops()
188 enum bpf_map_type inner_map_type, in _map_in_map_batch_ops()
H A Dmap_percpu_stats.c465 enum bpf_map_type map_types[] = { BPF_MAP_TYPE_PERCPU_ARRAY, in map_percpu_stats_map_value_size()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlibbpf_probes.c58 /* find enum bpf_map_type and enumerate each value */ in test_libbpf_probe_map_types()
59 id = btf__find_by_name_kind(btf, "bpf_map_type", BTF_KIND_ENUM); in test_libbpf_probe_map_types()
68 enum bpf_map_type map_type = (enum bpf_map_type)e->val; in test_libbpf_probe_map_types()
H A Dlibbpf_str.c108 * Test case to check that all bpf_map_type variants are covered by
122 /* find enum bpf_map_type and enumerate each value */ in test_libbpf_bpf_map_type_str()
123 id = btf__find_by_name_kind(btf, "bpf_map_type", BTF_KIND_ENUM); in test_libbpf_bpf_map_type_str()
130 enum bpf_map_type map_type = (enum bpf_map_type)e->val; in test_libbpf_bpf_map_type_str()
H A Dsockmap_redir.c327 static void test_socket(enum bpf_map_type type, struct redir_spec *redir, in test_socket()
363 static void test_redir(enum bpf_map_type type, struct redir_spec *redir, in test_redir()
409 static void test_map(enum bpf_map_type type) in test_map()
440 FAIL("Unsupported bpf_map_type"); in test_map()
H A Dselect_reuseport.c38 static enum bpf_map_type inner_map_type;
64 static int create_maps(enum bpf_map_type inner_type) in create_maps()
728 static const char *maptype_str(enum bpf_map_type type) in maptype_str()
842 void test_map_type(enum bpf_map_type mt) in test_map_type()
H A Dsockmap_basic.c90 static void test_sockmap_create_update_free(enum bpf_map_type map_type) in test_sockmap_create_update_free()
145 static void test_skmsg_helpers(enum bpf_map_type map_type) in test_skmsg_helpers()
168 static void test_skmsg_helpers_with_link(enum bpf_map_type map_type) in test_skmsg_helpers_with_link()
227 static void test_sockmap_update(enum bpf_map_type map_type) in test_sockmap_update()
283 static void test_sockmap_copy(enum bpf_map_type map_type) in test_sockmap_copy()
H A Dmap_init.c38 static struct test_map_init *setup(enum bpf_map_type map_type, int map_sz, in setup()
H A Dsockmap_ktls.c121 enum bpf_map_type map_type) in fmt_test_name()
406 static void run_tests(int family, enum bpf_map_type map_type) in run_tests()
H A Dlookup_and_delete.c44 static struct test_lookup_and_delete *setup_prog(enum bpf_map_type map_type, in setup_prog()
/linux/include/trace/events/
H A Dxdp.h95 enum bpf_map_type map_type,
145 enum bpf_map_type map_type,
154 enum bpf_map_type map_type,
/linux/samples/bpf/
H A Dtracex6.bpf.c60 enum bpf_map_type type; in BPF_KPROBE()
/linux/tools/lib/bpf/
H A Dbpf_gen_internal.h60 enum bpf_map_type map_type, const char *map_name,
H A Dlibbpf.h77 * returned for unknown **bpf_map_type** values.
79 LIBBPF_API const char *libbpf_bpf_map_type_str(enum bpf_map_type t);
1057 LIBBPF_API enum bpf_map_type bpf_map__type(const struct bpf_map *map);
1058 LIBBPF_API int bpf_map__set_type(struct bpf_map *map, enum bpf_map_type type);
1706 LIBBPF_API int libbpf_probe_bpf_map_type(enum bpf_map_type map_type, const void *opts);
H A Dskel_internal.h219 static inline int skel_map_create(enum bpf_map_type map_type, in skel_map_create()
H A Dbpf.h61 LIBBPF_API int bpf_map_create(enum bpf_map_type map_type,
H A Dgen_loader.c482 enum bpf_map_type map_type, in bpf_gen__map_create()
/linux/kernel/bpf/
H A Dtoken.c261 bool bpf_token_allow_map_type(const struct bpf_token *token, enum bpf_map_type type) in bpf_token_allow_map_type()
/linux/tools/testing/selftests/bpf/progs/
H A Dmap_ptr_kern.c13 enum bpf_map_type g_map_type = BPF_MAP_TYPE_UNSPEC;
31 enum bpf_map_type map_type;
/linux/tools/bpf/bpftool/
H A Dfeature.c593 static bool probe_map_type_ifindex(enum bpf_map_type map_type, __u32 ifindex) in probe_map_type_ifindex()
614 probe_map_type(enum bpf_map_type map_type, char const *map_type_str, in probe_map_type()
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c531 static bool skip_unsupported_map(enum bpf_map_type map_type) in skip_unsupported_map()
665 enum bpf_map_type type = percpu ? BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE : in create_cgroup_storage()
H A Dtest_loader.c825 enum bpf_map_type type; in is_unpriv_capable_map()
/linux/include/linux/
H A Dbpf.h296 enum bpf_map_type map_type;
2580 bool bpf_token_allow_map_type(const struct bpf_token *token, enum bpf_map_type type);
/linux/tools/include/uapi/linux/
H A Dbpf.h980 enum bpf_map_type { enum
1486 __u32 map_type; /* one of enum bpf_map_type */
/linux/include/uapi/linux/
H A Dbpf.h980 enum bpf_map_type { enum
1486 __u32 map_type; /* one of enum bpf_map_type */

12