Home
last modified time | relevance | path

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

12

/tools/testing/selftests/bpf/prog_tests/
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()
Dlibbpf_str.c40 enum bpf_attach_type attach_type = (enum bpf_attach_type)e->val; in test_libbpf_bpf_attach_type_str()
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()
Dctx_rewrite.c35 enum bpf_attach_type expected_attach_type;
635 enum bpf_attach_type expected_attach_type;
Dsockmap_basic.c333 static void test_sockmap_skb_verdict_attach(enum bpf_attach_type first, in test_sockmap_skb_verdict_attach()
334 enum bpf_attach_type second) in test_sockmap_skb_verdict_attach()
408 static void test_sockmap_progs_query(enum bpf_attach_type attach_type) in test_sockmap_progs_query()
Dsock_addr.c67 enum bpf_attach_type attach_type,
358 enum bpf_attach_type attach_type;
382 enum bpf_attach_type attach_type, \
414 enum bpf_attach_type attach_type, \
/tools/lib/bpf/
Dbpf.h77 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,
Dlibbpf_legacy.h131 LIBBPF_API enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *pro…
Dbpf_gen_internal.h68 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *name, enum bpf_attach_type type…
Dlibbpf.h61 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);
895 LIBBPF_API enum bpf_attach_type
912 enum bpf_attach_type type);
1896 enum bpf_attach_type exp_attach_type,
Dbpf.c629 int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, in bpf_prog_attach()
639 int bpf_prog_attach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_attach_opts()
677 int bpf_prog_detach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_detach_opts()
714 int bpf_prog_detach(int target_fd, enum bpf_attach_type type) in bpf_prog_detach()
719 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2()
725 enum bpf_attach_type attach_type, in bpf_link_create()
930 int bpf_prog_query_opts(int target, enum bpf_attach_type type, in bpf_prog_query_opts()
959 int bpf_prog_query(int target_fd, enum bpf_attach_type type, __u32 query_flags, in bpf_prog_query()
Dskel_internal.h290 enum bpf_attach_type attach_type) in skel_link_create()
Dlibbpf_internal.h413 void btf_get_kernel_prefix_kind(enum bpf_attach_type attach_type,
Dlibbpf.c417 enum bpf_attach_type expected_attach_type;
482 enum bpf_attach_type expected_attach_type;
9324 enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *prog);
9326 enum bpf_attach_type bpf_program__expected_attach_type(const struct bpf_program *prog) in bpf_program__expected_attach_type()
9332 enum bpf_attach_type type) in bpf_program__set_expected_attach_type()
9517 enum bpf_attach_type exp_attach_type, in libbpf_register_prog_handler()
9693 enum bpf_attach_type *expected_attach_type) in libbpf_prog_type_by_name()
9718 const char *libbpf_bpf_attach_type_str(enum bpf_attach_type t) in libbpf_bpf_attach_type_str()
9885 void btf_get_kernel_prefix_kind(enum bpf_attach_type attach_type, in btf_get_kernel_prefix_kind()
9926 enum bpf_attach_type attach_type) in find_attach_btf_id()
[all …]
Dgen_loader.c527 enum bpf_attach_type type) in bpf_gen__record_attach_target()
/tools/bpf/bpftool/
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()
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()
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()
Dmain.h261 const char *bpf_attach_type_input_str(enum bpf_attach_type t);
Dcommon.c1135 const char *bpf_attach_type_input_str(enum bpf_attach_type t) in bpf_attach_type_input_str()
Dnet.c462 const enum bpf_attach_type loc) in __show_dev_tc_bpf()
/tools/testing/selftests/bpf/
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()
Dtest_sysctl.c32 enum bpf_attach_type attach_type;
1545 enum bpf_attach_type atype = test->attach_type; in run_test_case()
Dveristat.c860 enum bpf_attach_type *attach_type) in guess_prog_type_by_ctx_name()
874 enum bpf_attach_type attach_type; in guess_prog_type_by_ctx_name()
943 enum bpf_attach_type attach_type; in fixup_obj()
Dtest_verifier.c163 enum bpf_attach_type expected_attach_type;
/tools/include/uapi/linux/
Dbpf.h1061 enum bpf_attach_type { enum

12