/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | map_in_map_batch_ops.c | 31 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 D | map_percpu_stats.c | 465 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 D | libbpf_probes.c | 58 /* 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 D | libbpf_str.c | 108 * 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 D | sockmap_redir.c | 327 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 D | select_reuseport.c | 38 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 D | sockmap_basic.c | 90 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 D | map_init.c | 38 static struct test_map_init *setup(enum bpf_map_type map_type, int map_sz, in setup()
|
H A D | sockmap_ktls.c | 121 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 D | lookup_and_delete.c | 44 static struct test_lookup_and_delete *setup_prog(enum bpf_map_type map_type, in setup_prog()
|
/linux/include/trace/events/ |
H A D | xdp.h | 95 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 D | tracex6.bpf.c | 60 enum bpf_map_type type; in BPF_KPROBE()
|
/linux/tools/lib/bpf/ |
H A D | bpf_gen_internal.h | 60 enum bpf_map_type map_type, const char *map_name,
|
H A D | libbpf.h | 77 * 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 D | skel_internal.h | 219 static inline int skel_map_create(enum bpf_map_type map_type, in skel_map_create()
|
H A D | bpf.h | 61 LIBBPF_API int bpf_map_create(enum bpf_map_type map_type,
|
H A D | gen_loader.c | 482 enum bpf_map_type map_type, in bpf_gen__map_create()
|
/linux/kernel/bpf/ |
H A D | token.c | 261 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 D | map_ptr_kern.c | 13 enum bpf_map_type g_map_type = BPF_MAP_TYPE_UNSPEC; 31 enum bpf_map_type map_type;
|
/linux/tools/bpf/bpftool/ |
H A D | feature.c | 593 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 D | test_verifier.c | 531 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 D | test_loader.c | 825 enum bpf_map_type type; in is_unpriv_capable_map()
|
/linux/include/linux/ |
H A D | bpf.h | 296 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 D | bpf.h | 980 enum bpf_map_type { enum 1486 __u32 map_type; /* one of enum bpf_map_type */
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 980 enum bpf_map_type { enum 1486 __u32 map_type; /* one of enum bpf_map_type */
|