Home
last modified time | relevance | path

Searched refs:bpf_attach_type (Results 1 – 25 of 43) sorted by relevance

12

/linux/tools/lib/bpf/
H A Dbpf.h77 enum bpf_attach_type expected_attach_type;
334 enum bpf_attach_type type, unsigned int flags);
335 LIBBPF_API int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type);
337 enum bpf_attach_type type);
376 enum bpf_attach_type type,
392 enum bpf_attach_type type,
452 enum bpf_attach_type attach_type,
623 LIBBPF_API int bpf_prog_query_opts(int target, enum bpf_attach_type type,
625 LIBBPF_API int bpf_prog_query(int target_fd, enum bpf_attach_type type,
H A Dlibbpf.h61 LIBBPF_API const char *libbpf_bpf_attach_type_str(enum bpf_attach_type t);
328 enum bpf_attach_type *expected_attach_type);
330 enum bpf_attach_type *attach_type);
332 enum bpf_attach_type attach_type);
929 LIBBPF_API enum bpf_attach_type
946 enum bpf_attach_type type);
1944 enum bpf_attach_type exp_attach_type,
H A Dlibbpf_legacy.h131 LIBBPF_API enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *pro…
H A Dbpf_gen_internal.h69 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *name, enum bpf_attach_type type…
H A Dbpf.c630 int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, in bpf_prog_attach()
640 int bpf_prog_attach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_attach_opts()
678 int bpf_prog_detach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_detach_opts()
715 int bpf_prog_detach(int target_fd, enum bpf_attach_type type) in bpf_prog_detach()
720 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2()
726 enum bpf_attach_type attach_type, in bpf_link_create()
976 int bpf_prog_query_opts(int target, enum bpf_attach_type type, in bpf_prog_query_opts()
1005 int bpf_prog_query(int target_fd, enum bpf_attach_type type, __u32 query_flags, in bpf_prog_query()
H A Dskel_internal.h290 enum bpf_attach_type attach_type) in skel_link_create()
/linux/tools/bpf/bpftool/
H A Dcgroup.c77 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()
546 enum bpf_attach_type attach_type; in do_attach()
606 enum bpf_attach_type attach_type; in do_detach()
H A Dprog.c68 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()
1501 enum bpf_attach_type *expected_attach_type) in get_prog_type_by_name()
1572 enum bpf_attach_type expected_attach_type; in load_with_options()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsection_names.c12 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 Dsock_create.c17 enum bpf_attach_type attach_type;
18 enum bpf_attach_type expected_attach_type;
256 enum bpf_attach_type expected_attach_type) in load_prog()
H A Dlibbpf_str.c40 enum bpf_attach_type attach_type = (enum bpf_attach_type)e->val; in test_libbpf_bpf_attach_type_str()
H A Dsock_post_bind.c14 enum bpf_attach_type attach_type;
15 enum bpf_attach_type expected_attach_type;
281 enum bpf_attach_type expected_attach_type) in load_prog()
H A Dcgroup_mprog_ordering.c10 enum bpf_attach_type prog_p_atype, prog_p2_atype; in run_getsockopt_test()
H A Dsockmap_redir.c128 enum bpf_attach_type *attach_type, in get_redir_params()
419 enum bpf_attach_type attach_type; in test_map()
H A Dcgroup_preorder.c10 enum bpf_attach_type prog_c_atype, prog_c2_atype, prog_p_atype, prog_p2_atype; in run_getsockopt_test()
H A Dsockopt.c28 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 Dctx_rewrite.c35 enum bpf_attach_type expected_attach_type;
635 enum bpf_attach_type expected_attach_type;
H A Dsockmap_basic.c367 static void test_sockmap_skb_verdict_attach(enum bpf_attach_type first, in test_sockmap_skb_verdict_attach()
368 enum bpf_attach_type second) in test_sockmap_skb_verdict_attach()
442 static void test_sockmap_progs_query(enum bpf_attach_type attach_type) in test_sockmap_progs_query()
/linux/include/linux/
H A Dbpf-netns.h10 to_netns_bpf_attach_type(enum bpf_attach_type attach_type) in to_netns_bpf_attach_type()
H A Dbpf.h1606 enum bpf_attach_type saved_dst_attach_type;
1711 enum bpf_attach_type expected_attach_type; /* For some prog types */
1744 enum bpf_attach_type attach_type;
2050 enum bpf_attach_type attach_type);
2055 enum bpf_attach_type attach_type) in bpf_trampoline_link_cgroup_shim()
2557 enum bpf_attach_type attach_type);
2560 enum bpf_attach_type attach_type, bool sleepable);
2583 enum bpf_attach_type attach_type);
2915 struct bpf_prog *prog, enum bpf_attach_type attach_type) in bpf_link_init()
2921 enum bpf_attach_type attach_type, bool sleepable) in bpf_link_init_sleepable()
H A Dbpf-cgroup.h39 to_cgroup_bpf_attach_type(enum bpf_attach_type attach_type) in to_cgroup_bpf_attach_type()
171 enum bpf_attach_type type);
/linux/kernel/bpf/
H A Dcgroup.c168 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find()
214 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find()
238 enum bpf_attach_type type, in bpf_cgroup_storages_alloc()
281 enum bpf_attach_type attach_type) in bpf_cgroup_storages_link()
789 enum bpf_attach_type type, u32 flags, u32 id_or_fd, in __cgroup_bpf_attach()
910 enum bpf_attach_type type, in cgroup_bpf_attach()
1137 struct bpf_cgroup_link *link, enum bpf_attach_type type, in __cgroup_bpf_detach()
1200 enum bpf_attach_type type, u64 revision) in cgroup_bpf_detach()
1217 enum bpf_attach_type type = attr->query.attach_type; in __cgroup_bpf_query()
H A Dtoken.c271 enum bpf_attach_type attach_type) in bpf_token_allow_prog_type()
/linux/Documentation/bpf/
H A Dmap_cgroup_storage.rst80 __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)
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_global_ptr_args.c273 __weak int subprog_enum_untrusted(enum bpf_attach_type *p __arg_untrusted) in subprog_enum_untrusted()

12