Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/bpf/bpftool/
H A Dcgroup.c43 static enum bpf_attach_type parse_attach_type(const char *str) in parse_attach_type()
46 enum bpf_attach_type type; in parse_attach_type()
96 static int show_bpf_prog(int id, enum bpf_attach_type attach_type, in show_bpf_prog()
169 static int count_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type) in count_attached_bpf_progs()
184 enum bpf_attach_type type; in cgroup_has_attached_progs()
227 static int show_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type, in show_attached_bpf_progs()
277 static int show_bpf_progs(int cgroup_fd, enum bpf_attach_type type, in show_bpf_progs()
287 enum bpf_attach_type type; in do_show()
369 enum bpf_attach_type type; in do_show_tree_fn()
512 enum bpf_attach_type attach_type; in do_attach()
[all …]
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()
1029 enum bpf_attach_type *attach_type, in parse_attach_detach_args()
1063 enum bpf_attach_type attach_type; in do_attach()
1085 enum bpf_attach_type attach_type; in do_detach()
1444 enum bpf_attach_type *expected_attach_type) in get_prog_type_by_name()
1515 enum bpf_attach_type expected_attach_type; in load_with_options()
H A Dmain.h261 const char *bpf_attach_type_input_str(enum bpf_attach_type t);
/openbmc/linux/tools/lib/bpf/
H A Dbpf.h73 enum bpf_attach_type expected_attach_type;
316 enum bpf_attach_type type, unsigned int flags);
317 LIBBPF_API int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type);
319 enum bpf_attach_type type);
358 enum bpf_attach_type type,
374 enum bpf_attach_type type,
424 enum bpf_attach_type attach_type,
582 LIBBPF_API int bpf_prog_query_opts(int target, enum bpf_attach_type type,
584 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);
285 enum bpf_attach_type *expected_attach_type);
287 enum bpf_attach_type *attach_type);
289 enum bpf_attach_type attach_type);
835 LIBBPF_API enum bpf_attach_type
852 enum bpf_attach_type type);
1733 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.h68 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *name, enum bpf_attach_type type…
H A Dbpf.c622 int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, in bpf_prog_attach()
632 int bpf_prog_attach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_attach_opts()
670 int bpf_prog_detach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_detach_opts()
707 int bpf_prog_detach(int target_fd, enum bpf_attach_type type) in bpf_prog_detach()
712 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2()
718 enum bpf_attach_type attach_type, in bpf_link_create()
905 int bpf_prog_query_opts(int target, enum bpf_attach_type type, in bpf_prog_query_opts()
934 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()
H A Dlibbpf_internal.h388 void btf_get_kernel_prefix_kind(enum bpf_attach_type attach_type,
/openbmc/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;
165 enum bpf_attach_type expected_attach_type; in test_prog_type_by_name()
189 enum bpf_attach_type attach_type; in test_attach_type_by_name()
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 Dsockmap_basic.c274 static void test_sockmap_skb_verdict_attach(enum bpf_attach_type first, in test_sockmap_skb_verdict_attach()
275 enum bpf_attach_type second) in test_sockmap_skb_verdict_attach()
315 static void test_sockmap_progs_query(enum bpf_attach_type attach_type) in test_sockmap_progs_query()
H A Dsockopt.c26 enum bpf_attach_type attach_type;
27 enum bpf_attach_type expected_attach_type;
920 enum bpf_attach_type expected_attach_type) in load_prog()
H A Dctx_rewrite.c34 enum bpf_attach_type expected_attach_type;
733 enum bpf_attach_type expected_attach_type;
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sock.c29 enum bpf_attach_type expected_attach_type;
30 enum bpf_attach_type attach_type;
388 enum bpf_attach_type attach_type) in load_sock_prog()
408 enum bpf_attach_type attach_type) in attach_sock_prog()
H A Dtest_sock_addr.c67 enum bpf_attach_type expected_attach_type;
68 enum bpf_attach_type attach_type;
H A Dtest_sysctl.c32 enum bpf_attach_type attach_type;
1545 enum bpf_attach_type atype = test->attach_type; in run_test_case()
H A Dveristat.c824 enum bpf_attach_type *attach_type) in guess_prog_type_by_ctx_name()
838 enum bpf_attach_type attach_type; in guess_prog_type_by_ctx_name()
907 enum bpf_attach_type attach_type; in fixup_obj()
/openbmc/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-cgroup.h39 to_cgroup_bpf_attach_type(enum bpf_attach_type attach_type) in to_cgroup_bpf_attach_type()
101 enum bpf_attach_type type;
169 enum bpf_attach_type type);
/openbmc/linux/samples/bpf/
H A Dtest_cgrp2_attach.c137 enum bpf_attach_type type; in main()
/openbmc/linux/kernel/bpf/
H A Dcgroup.c138 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find()
184 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find()
208 enum bpf_attach_type type, in bpf_cgroup_storages_alloc()
251 enum bpf_attach_type attach_type) in bpf_cgroup_storages_link()
610 enum bpf_attach_type type, u32 flags) in __cgroup_bpf_attach()
727 enum bpf_attach_type type, in cgroup_bpf_attach()
951 struct bpf_cgroup_link *link, enum bpf_attach_type type) in __cgroup_bpf_detach()
1009 enum bpf_attach_type type) in cgroup_bpf_detach()
1026 enum bpf_attach_type type = attr->query.attach_type; in __cgroup_bpf_query()
H A Dnet_namespace.c14 enum bpf_attach_type type;
482 enum bpf_attach_type type; in netns_bpf_link_create()
/openbmc/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)

12