/linux/tools/bpf/bpftool/ |
H A D | cgroup.c | 77 static enum bpf_attach_type parse_attach_type(const char *str) in parse_attach_type() 80 enum bpf_attach_type type; in parse_attach_type() 130 static int show_bpf_prog(int id, enum bpf_attach_type attach_type, in show_bpf_prog() 203 static int count_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type) in count_attached_bpf_progs() 236 static int show_effective_bpf_progs(int cgroup_fd, enum bpf_attach_type type, in show_effective_bpf_progs() 261 static int show_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type, in show_attached_bpf_progs() 311 static int show_bpf_progs(int cgroup_fd, enum bpf_attach_type type, in show_bpf_progs() 321 enum bpf_attach_type type; in do_show() 403 enum bpf_attach_type type; in do_show_tree_fn() 546 enum bpf_attach_type attach_type; in do_attach() [all …]
|
H A D | prog.c | 68 static enum bpf_attach_type parse_attach_type(const char *str) in parse_attach_type() 70 enum bpf_attach_type type; in parse_attach_type() 1040 enum bpf_attach_type *attach_type, in parse_attach_detach_args() 1074 enum bpf_attach_type attach_type; in do_attach() 1096 enum bpf_attach_type attach_type; in do_detach() 1455 enum bpf_attach_type *expected_attach_type) in get_prog_type_by_name() 1526 enum bpf_attach_type expected_attach_type; in load_with_options()
|
H A D | main.h | 261 const char *bpf_attach_type_input_str(enum bpf_attach_type t);
|
H A D | common.c | 1134 const char *bpf_attach_type_input_str(enum bpf_attach_type t) in bpf_attach_type_input_str()
|
/linux/tools/lib/bpf/ |
H A D | bpf.h | 77 enum bpf_attach_type expected_attach_type; 331 enum bpf_attach_type type, unsigned int flags); 332 LIBBPF_API int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type); 334 enum bpf_attach_type type); 373 enum bpf_attach_type type, 389 enum bpf_attach_type type, 444 enum bpf_attach_type attach_type, 614 LIBBPF_API int bpf_prog_query_opts(int target, enum bpf_attach_type type, 616 LIBBPF_API int bpf_prog_query(int target_fd, enum bpf_attach_type type,
|
H A D | libbpf.h | 61 LIBBPF_API const char *libbpf_bpf_attach_type_str(enum bpf_attach_type t); 315 enum bpf_attach_type *expected_attach_type); 317 enum bpf_attach_type *attach_type); 319 enum bpf_attach_type attach_type); 897 LIBBPF_API enum bpf_attach_type 914 enum bpf_attach_type type); 1898 enum bpf_attach_type exp_attach_type,
|
H A D | libbpf_legacy.h | 131 LIBBPF_API enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *pro…
|
H A D | skel_internal.h | 290 enum bpf_attach_type attach_type) in skel_link_create()
|
H A D | libbpf.c | 416 enum bpf_attach_type expected_attach_type; 481 enum bpf_attach_type expected_attach_type; 9316 enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *prog); 9318 enum bpf_attach_type bpf_program__expected_attach_type(const struct bpf_program *prog) in bpf_program__expected_attach_type() 9324 enum bpf_attach_type type) in bpf_program__set_expected_attach_type() 9511 enum bpf_attach_type exp_attach_type, in libbpf_register_prog_handler() 9687 enum bpf_attach_type *expected_attach_type) in libbpf_prog_type_by_name() 9712 const char *libbpf_bpf_attach_type_str(enum bpf_attach_type t) in libbpf_bpf_attach_type_str() 9879 void btf_get_kernel_prefix_kind(enum bpf_attach_type attach_type, in btf_get_kernel_prefix_kind() 9920 enum bpf_attach_type attach_type) in find_attach_btf_id() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | section_names.c | 12 enum bpf_attach_type expected_attach_type; 16 enum bpf_attach_type attach_type; 210 enum bpf_attach_type expected_attach_type; in test_prog_type_by_name() 234 enum bpf_attach_type attach_type; in test_attach_type_by_name()
|
H A D | libbpf_str.c | 40 enum bpf_attach_type attach_type = (enum bpf_attach_type)e->val; in test_libbpf_bpf_attach_type_str()
|
H A D | sockopt.c | 28 enum bpf_attach_type attach_type; 29 enum bpf_attach_type expected_attach_type; 966 enum bpf_attach_type expected_attach_type) in load_prog()
|
H A D | ctx_rewrite.c | 35 enum bpf_attach_type expected_attach_type; 635 enum bpf_attach_type expected_attach_type;
|
H A D | sockmap_basic.c | 363 static void test_sockmap_skb_verdict_attach(enum bpf_attach_type first, in test_sockmap_skb_verdict_attach() 364 enum bpf_attach_type second) in test_sockmap_skb_verdict_attach() 438 static void test_sockmap_progs_query(enum bpf_attach_type attach_type) in test_sockmap_progs_query()
|
H A D | sock_addr.c | 63 enum bpf_attach_type attach_type, 354 enum bpf_attach_type attach_type; 378 enum bpf_attach_type attach_type, \ 410 enum bpf_attach_type attach_type, \
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_sock.c |
|
H A D | test_sysctl.c | 32 enum bpf_attach_type attach_type; 1545 enum bpf_attach_type atype = test->attach_type; in run_test_case()
|
H A D | veristat.c | 982 enum bpf_attach_type *attach_type) in guess_prog_type_by_ctx_name() 996 enum bpf_attach_type attach_type; in guess_prog_type_by_ctx_name() 1065 enum bpf_attach_type attach_type; in fixup_obj()
|
/linux/include/linux/ |
H A D | bpf-netns.h | 10 to_netns_bpf_attach_type(enum bpf_attach_type attach_type) in to_netns_bpf_attach_type()
|
H A D | bpf.h | 1516 enum bpf_attach_type saved_dst_attach_type; 1618 enum bpf_attach_type expected_attach_type; /* For some prog types */ 1700 enum bpf_attach_type attach_type; 2439 enum bpf_attach_type attach_type);
|
/linux/kernel/bpf/ |
H A D | cgroup.c | 155 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find() 201 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find() 225 enum bpf_attach_type type, in bpf_cgroup_storages_alloc() 268 enum bpf_attach_type attach_type) in bpf_cgroup_storages_link() 627 enum bpf_attach_type type, u32 flags) in __cgroup_bpf_attach() 744 enum bpf_attach_type type, in cgroup_bpf_attach() 968 struct bpf_cgroup_link *link, enum bpf_attach_type type) in __cgroup_bpf_detach() 1026 enum bpf_attach_type type) in cgroup_bpf_detach() 1043 enum bpf_attach_type type = attr->query.attach_type; in __cgroup_bpf_query()
|
H A D | net_namespace.c | 14 enum bpf_attach_type type; 482 enum bpf_attach_type type; in netns_bpf_link_create()
|
H A D | token.c | 248 enum bpf_attach_type attach_type) in bpf_token_allow_prog_type()
|
H A D | local_storage.c | 576 enum bpf_attach_type type) in bpf_cgroup_storage_link()
|
/linux/Documentation/bpf/ |
H A D | map_cgroup_storage.rst | 80 __u32 map_lookup(struct bpf_map *map, __u64 cgrp, enum bpf_attach_type type) 115 __u32 map_lookup(struct bpf_map *map, __u64 cgrp, enum bpf_attach_type type)
|