| /tools/testing/selftests/bpf/prog_tests/ |
| A D | sockopt.c | 28 enum bpf_attach_type attach_type; member 56 .attach_type = BPF_CGROUP_GETSOCKOPT, 68 .attach_type = BPF_CGROUP_GETSOCKOPT, 79 .attach_type = BPF_CGROUP_GETSOCKOPT, 100 .attach_type = BPF_CGROUP_GETSOCKOPT, 124 .attach_type = BPF_CGROUP_GETSOCKOPT, 150 .attach_type = BPF_CGROUP_GETSOCKOPT, 166 .attach_type = BPF_CGROUP_GETSOCKOPT, 193 .attach_type = BPF_CGROUP_GETSOCKOPT, 211 .attach_type = BPF_CGROUP_GETSOCKOPT, [all …]
|
| A D | sock_post_bind.c | 14 enum bpf_attach_type attach_type; member 40 .attach_type = BPF_CGROUP_INET6_POST_BIND, 50 .attach_type = BPF_CGROUP_INET4_POST_BIND, 60 .attach_type = BPF_CGROUP_INET4_POST_BIND, 70 .attach_type = BPF_CGROUP_INET_SOCK_CREATE, 80 .attach_type = BPF_CGROUP_INET4_POST_BIND, 93 .attach_type = BPF_CGROUP_INET6_POST_BIND, 122 .attach_type = BPF_CGROUP_INET6_POST_BIND, 152 .attach_type = BPF_CGROUP_INET4_POST_BIND, 182 .attach_type = BPF_CGROUP_INET4_POST_BIND, [all …]
|
| A D | sock_create.c | 17 enum bpf_attach_type attach_type; member 41 .attach_type = BPF_CGROUP_INET_SOCK_CREATE, 62 .attach_type = BPF_CGROUP_INET_SOCK_CREATE, 93 .attach_type = BPF_CGROUP_INET_SOCK_CREATE, 124 .attach_type = BPF_CGROUP_INET_SOCK_CREATE, 145 .attach_type = BPF_CGROUP_INET_SOCK_CREATE, 166 .attach_type = BPF_CGROUP_INET_SOCK_CREATE, 199 .attach_type = BPF_CGROUP_INET_SOCK_CREATE, 232 .attach_type = BPF_CGROUP_INET_SOCK_CREATE, 248 .attach_type = BPF_CGROUP_INET_SOCK_CREATE, [all …]
|
| A D | test_sysctl.c | 18 enum bpf_attach_type attach_type; member 39 .attach_type = 0, 50 .attach_type = BPF_CGROUP_SYSCTL, 61 .attach_type = BPF_CGROUP_SYSCTL, 82 .attach_type = BPF_CGROUP_SYSCTL, 103 .attach_type = BPF_CGROUP_SYSCTL, 126 .attach_type = BPF_CGROUP_SYSCTL, 142 .attach_type = BPF_CGROUP_SYSCTL, 163 .attach_type = BPF_CGROUP_SYSCTL, 190 .attach_type = BPF_CGROUP_SYSCTL, [all …]
|
| A D | section_names.c | 16 enum bpf_attach_type attach_type; member 234 enum bpf_attach_type attach_type; in test_attach_type_by_name() local 237 rc = libbpf_attach_type_by_name(test->sec_name, &attach_type); in test_attach_type_by_name() 245 CHECK(attach_type != test->expected_attach.attach_type, in test_attach_type_by_name() 247 attach_type, test->sec_name); in test_attach_type_by_name()
|
| A D | cg_storage_multi.c | 96 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_egress_only() 196 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 201 key.attach_type = BPF_CGROUP_INET_INGRESS; in test_isolated() 207 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 210 key.attach_type = BPF_CGROUP_INET_INGRESS; in test_isolated() 238 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 243 key.attach_type = BPF_CGROUP_INET_INGRESS; in test_isolated() 249 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 254 key.attach_type = BPF_CGROUP_INET_INGRESS; in test_isolated()
|
| A D | sockmap_redir.c | 128 enum bpf_attach_type *attach_type, in get_redir_params() argument 139 *attach_type = sk_msg ? BPF_SK_MSG_VERDICT : BPF_SK_SKB_VERDICT; in get_redir_params() 419 enum bpf_attach_type attach_type; in test_map() local 446 get_redir_params(r, skel, &prog_fd, &attach_type, in test_map() 449 if (xbpf_prog_attach(prog_fd, maps.in, attach_type, 0)) in test_map() 454 if (xbpf_prog_detach2(prog_fd, maps.in, attach_type)) in test_map()
|
| 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() local 45 if (attach_type == __MAX_BPF_ATTACH_TYPE) in test_libbpf_bpf_attach_type_str() 49 attach_type_str = libbpf_bpf_attach_type_str(attach_type); in test_libbpf_bpf_attach_type_str()
|
| A D | bpf_verif_scale.c | 49 enum bpf_prog_type attach_type, in scale_test() argument 60 err = check_load(file, attach_type); in scale_test()
|
| A D | sockmap_basic.c | 442 static void test_sockmap_progs_query(enum bpf_attach_type attach_type) in test_sockmap_progs_query() argument 456 if (attach_type == BPF_SK_MSG_VERDICT) in test_sockmap_progs_query() 461 err = bpf_prog_query(map_fd, attach_type, 0 /* query flags */, in test_sockmap_progs_query() 467 err = bpf_prog_attach(verdict_fd, map_fd, attach_type, 0); in test_sockmap_progs_query() 472 err = bpf_prog_query(map_fd, attach_type, 0 /* query flags */, in test_sockmap_progs_query() 480 bpf_prog_detach2(verdict_fd, map_fd, attach_type); in test_sockmap_progs_query()
|
| A D | sock_addr.c | 63 enum bpf_attach_type attach_type, 354 enum bpf_attach_type attach_type; member 378 enum bpf_attach_type attach_type, \ 390 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, \ 399 bpf_prog_detach(cgroup_fd, attach_type); \ 410 enum bpf_attach_type attach_type, \ 417 attach_type), \ 2612 skel = test->loadfn(cgroup_fd, test->attach_type, in test_sock_addr()
|
| A D | flow_dissector_reattach.c | 512 CHECK_FAIL(info.netns.attach_type != BPF_FLOW_DISSECTOR); in test_link_get_info() 536 CHECK_FAIL(info.netns.attach_type != BPF_FLOW_DISSECTOR); in test_link_get_info() 561 CHECK_FAIL(info.netns.attach_type != BPF_FLOW_DISSECTOR); in test_link_get_info()
|
| A D | tc_opts.c | 2558 attr.query.attach_type = target; in test_tc_opts_query_target() 2569 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target() 2587 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target() 2601 attr.query.attach_type = target; in test_tc_opts_query_target() 2616 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target() 2630 attr.query.attach_type = target; in test_tc_opts_query_target() 2645 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target() 2659 attr.query.attach_type = target; in test_tc_opts_query_target() 2673 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target() 2687 attr.query.attach_type = target; in test_tc_opts_query_target() [all …]
|
| A D | fexit_bpf2bpf.c | 142 ASSERT_EQ(link_info.tracing.attach_type, in test_fexit_bpf2bpf_common()
|
| /tools/bpf/bpftool/ |
| A D | net.c | 659 switch (attach_type) { in get_tcx_type() 671 int type = get_tcx_type(attach_type); in do_attach_tcx() 678 int type = get_tcx_type(attach_type); in do_detach_tcx() 685 enum net_attach_type attach_type; in do_attach() local 693 attach_type = parse_attach_type(*argv); in do_attach() 694 if (attach_type == net_attach_type_size) { in do_attach() 720 switch (attach_type) { in do_attach() 752 enum net_attach_type attach_type; in do_detach() local 759 attach_type = parse_attach_type(*argv); in do_detach() 760 if (attach_type == net_attach_type_size) { in do_detach() [all …]
|
| A D | cgroup.c | 130 static int show_bpf_prog(int id, enum bpf_attach_type attach_type, in show_bpf_prog() argument 150 attach_type_str = libbpf_bpf_attach_type_str(attach_type); in show_bpf_prog() 172 jsonw_uint_field(json_wtr, "attach_type", attach_type); in show_bpf_prog() 186 printf("type %-10u", attach_type); in show_bpf_prog() 546 enum bpf_attach_type attach_type; in do_attach() local 563 attach_type = parse_attach_type(argv[1]); in do_attach() 564 if (attach_type == __MAX_BPF_ATTACH_TYPE) { in do_attach() 606 enum bpf_attach_type attach_type; in do_detach() local 621 attach_type = parse_attach_type(argv[1]); in do_detach() 622 if (attach_type == __MAX_BPF_ATTACH_TYPE) { in do_detach() [all …]
|
| A D | link.c | 146 attach_type_str = libbpf_bpf_attach_type_str(attach_type); in show_link_attach_type_json() 150 jsonw_uint_field(wtr, "attach_type", attach_type); in show_link_attach_type_json() 502 show_link_attach_type_json(info->tracing.attach_type, in show_link_close_json() 607 static void show_link_attach_type_plain(__u32 attach_type) in show_link_attach_type_plain() argument 615 printf("attach_type %u ", attach_type); in show_link_attach_type_plain() 899 show_link_attach_type_plain(info->tracing.attach_type); in show_link_close_plain() 909 show_link_attach_type_plain(info->cgroup.attach_type); in show_link_close_plain() 916 show_link_attach_type_plain(info->netns.attach_type); in show_link_close_plain() 924 show_link_attach_type_plain(info->tcx.attach_type); in show_link_close_plain() 929 show_link_attach_type_plain(info->netkit.attach_type); in show_link_close_plain() [all …]
|
| A D | prog.c | 1040 enum bpf_attach_type *attach_type, in parse_attach_detach_args() argument 1050 *attach_type = parse_attach_type(*argv); in parse_attach_detach_args() 1051 if (*attach_type == __MAX_BPF_ATTACH_TYPE) { in parse_attach_detach_args() 1056 if (*attach_type == BPF_FLOW_DISSECTOR) { in parse_attach_detach_args() 1074 enum bpf_attach_type attach_type; in do_attach() local 1079 &progfd, &attach_type, &mapfd); in do_attach() 1083 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); in do_attach() 1096 enum bpf_attach_type attach_type; in do_detach() local 1101 &progfd, &attach_type, &mapfd); in do_detach() 1105 err = bpf_prog_detach2(progfd, mapfd, attach_type); in do_detach()
|
| /tools/bpf/bpftool/Documentation/ |
| A D | bpftool-link.rst | 81 cgroup_id 614 attach_type egress 92 "attach_type": "egress",
|
| /tools/lib/bpf/ |
| A D | skel_internal.h | 290 enum bpf_attach_type attach_type) in skel_link_create() argument 298 attr.link_create.attach_type = attach_type; in skel_link_create()
|
| A D | bpf.c | 662 attr.attach_type = type; in bpf_prog_attach_opts() 700 attr.attach_type = type; in bpf_prog_detach_opts() 726 enum bpf_attach_type attach_type, in bpf_link_create() argument 751 attr.link_create.attach_type = attach_type; in bpf_link_create() 759 switch (attach_type) { in bpf_link_create() 912 switch (attach_type) { in bpf_link_create() 988 attr.query.attach_type = type; in bpf_prog_query_opts()
|
| A D | bpf.h | 452 enum bpf_attach_type attach_type,
|
| A D | libbpf.h | 330 enum bpf_attach_type *attach_type); 332 enum bpf_attach_type attach_type);
|
| /tools/include/uapi/linux/ |
| A D | bpf.h | 113 __u32 attach_type; /* program attach type (enum bpf_attach_type) */ member 1629 __u32 attach_type; member 1687 __u32 attach_type; member 1755 __u32 attach_type; /* attach type */ member 6692 __u32 attach_type; member 6700 __u32 attach_type; member 6728 __u32 attach_type; member 6794 __u32 attach_type; member 6798 __u32 attach_type; member 6802 __u32 attach_type; member
|
| /tools/testing/selftests/bpf/ |
| A D | veristat.c | 1132 enum bpf_attach_type *attach_type) in guess_prog_type_by_ctx_name() argument 1146 enum bpf_attach_type attach_type; in guess_prog_type_by_ctx_name() member 1177 *attach_type = ctx_map[i].attach_type; in guess_prog_type_by_ctx_name() 1254 enum bpf_attach_type attach_type; in fixup_obj() local 1282 if (guess_prog_type_by_ctx_name(ctx_name, &prog_type, &attach_type) == 0) { in fixup_obj() 1284 bpf_program__set_expected_attach_type(prog, attach_type); in fixup_obj() 2597 enum bpf_attach_type attach_type = 0; in parse_stat_value() local 2600 while ((type = libbpf_bpf_attach_type_str(attach_type))) { in parse_stat_value() 2602 st->stats[id] = attach_type; in parse_stat_value() 2605 attach_type++; in parse_stat_value()
|