attach_type 81 include/uapi/linux/bpf.h __u32 attach_type; /* program attach type */ attach_type 434 include/uapi/linux/bpf.h __u32 attach_type; attach_type 478 include/uapi/linux/bpf.h __u32 attach_type; attach_type 505 kernel/bpf/cgroup.c enum bpf_attach_type type = attr->query.attach_type; attach_type 559 kernel/bpf/cgroup.c ret = cgroup_bpf_attach(cgrp, prog, attr->attach_type, attach_type 579 kernel/bpf/cgroup.c ret = cgroup_bpf_detach(cgrp, prog, attr->attach_type, 0); attach_type 954 kernel/bpf/cgroup.c enum bpf_attach_type attach_type) attach_type 960 kernel/bpf/cgroup.c prog_array = rcu_dereference(cgrp->bpf.effective[attach_type]); attach_type 41 kernel/bpf/local_storage.c else if (key1->attach_type < key2->attach_type) attach_type 43 kernel/bpf/local_storage.c else if (key1->attach_type > key2->attach_type) attach_type 262 kernel/bpf/local_storage.c next->attach_type = storage->key.attach_type; attach_type 368 kernel/bpf/local_storage.c offset = offsetof(struct bpf_cgroup_storage_key, attach_type); attach_type 369 kernel/bpf/local_storage.c size = FIELD_SIZEOF(struct bpf_cgroup_storage_key, attach_type); attach_type 571 kernel/bpf/local_storage.c storage->key.attach_type = type; attach_type 1508 kernel/bpf/syscall.c enum bpf_prog_type *attach_type, bool attach_drv) attach_type 1511 kernel/bpf/syscall.c if (!attach_type) attach_type 1514 kernel/bpf/syscall.c if (prog->type != *attach_type) attach_type 1522 kernel/bpf/syscall.c static struct bpf_prog *__bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, attach_type 1531 kernel/bpf/syscall.c if (!bpf_prog_get_ok(prog, attach_type, attach_drv)) { attach_type 1877 kernel/bpf/syscall.c enum bpf_attach_type attach_type) attach_type 1883 kernel/bpf/syscall.c return attach_type == prog->expected_attach_type ? 0 : -EINVAL; attach_type 1886 kernel/bpf/syscall.c prog->expected_attach_type != attach_type ? attach_type 1913 kernel/bpf/syscall.c switch (attr->attach_type) { attach_type 1967 kernel/bpf/syscall.c if (bpf_prog_attach_check_attach_type(prog, attr->attach_type)) { attach_type 1992 kernel/bpf/syscall.c #define BPF_PROG_DETACH_LAST_FIELD attach_type attach_type 2004 kernel/bpf/syscall.c switch (attr->attach_type) { attach_type 2065 kernel/bpf/syscall.c switch (attr->query.attach_type) { attach_type 6641 net/core/filter.c enum bpf_attach_type attach_type) attach_type 6647 net/core/filter.c switch (attach_type) { attach_type 6654 net/core/filter.c switch (attach_type) { attach_type 6661 net/core/filter.c switch (attach_type) { attach_type 6668 net/core/filter.c switch (attach_type) { attach_type 74 net/core/sock_map.c ret = sock_map_prog_update(map, prog, attr->attach_type); attach_type 398 tools/bpf/bpftool/cgroup.c enum bpf_attach_type attach_type; attach_type 415 tools/bpf/bpftool/cgroup.c attach_type = parse_attach_type(argv[1]); attach_type 416 tools/bpf/bpftool/cgroup.c if (attach_type == __MAX_BPF_ATTACH_TYPE) { attach_type 438 tools/bpf/bpftool/cgroup.c if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { attach_type 458 tools/bpf/bpftool/cgroup.c enum bpf_attach_type attach_type; attach_type 473 tools/bpf/bpftool/cgroup.c attach_type = parse_attach_type(argv[1]); attach_type 474 tools/bpf/bpftool/cgroup.c if (attach_type == __MAX_BPF_ATTACH_TYPE) { attach_type 485 tools/bpf/bpftool/cgroup.c if (bpf_prog_detach2(prog_fd, cgroup_fd, attach_type)) { attach_type 275 tools/bpf/bpftool/net.c static int do_attach_detach_xdp(int progfd, enum net_attach_type attach_type, attach_type 282 tools/bpf/bpftool/net.c if (attach_type == NET_ATTACH_TYPE_XDP_GENERIC) attach_type 284 tools/bpf/bpftool/net.c if (attach_type == NET_ATTACH_TYPE_XDP_DRIVER) attach_type 286 tools/bpf/bpftool/net.c if (attach_type == NET_ATTACH_TYPE_XDP_OFFLOAD) attach_type 294 tools/bpf/bpftool/net.c enum net_attach_type attach_type; attach_type 302 tools/bpf/bpftool/net.c attach_type = parse_attach_type(*argv); attach_type 303 tools/bpf/bpftool/net.c if (attach_type == net_attach_type_size) { attach_type 330 tools/bpf/bpftool/net.c if (is_prefix("xdp", attach_type_strings[attach_type])) attach_type 331 tools/bpf/bpftool/net.c err = do_attach_detach_xdp(progfd, attach_type, ifindex, attach_type 336 tools/bpf/bpftool/net.c attach_type_strings[attach_type], strerror(-err)); attach_type 348 tools/bpf/bpftool/net.c enum net_attach_type attach_type; attach_type 355 tools/bpf/bpftool/net.c attach_type = parse_attach_type(*argv); attach_type 356 tools/bpf/bpftool/net.c if (attach_type == net_attach_type_size) { attach_type 368 tools/bpf/bpftool/net.c if (is_prefix("xdp", attach_type_strings[attach_type])) attach_type 369 tools/bpf/bpftool/net.c err = do_attach_detach_xdp(progfd, attach_type, ifindex, NULL); attach_type 373 tools/bpf/bpftool/net.c attach_type_strings[attach_type], strerror(-err)); attach_type 678 tools/bpf/bpftool/prog.c enum bpf_attach_type *attach_type, attach_type 688 tools/bpf/bpftool/prog.c *attach_type = parse_attach_type(*argv); attach_type 689 tools/bpf/bpftool/prog.c if (*attach_type == __MAX_BPF_ATTACH_TYPE) { attach_type 694 tools/bpf/bpftool/prog.c if (*attach_type == BPF_FLOW_DISSECTOR) { attach_type 712 tools/bpf/bpftool/prog.c enum bpf_attach_type attach_type; attach_type 717 tools/bpf/bpftool/prog.c &progfd, &attach_type, &mapfd); attach_type 721 tools/bpf/bpftool/prog.c err = bpf_prog_attach(progfd, mapfd, attach_type, 0); attach_type 734 tools/bpf/bpftool/prog.c enum bpf_attach_type attach_type; attach_type 739 tools/bpf/bpftool/prog.c &progfd, &attach_type, &mapfd); attach_type 743 tools/bpf/bpftool/prog.c err = bpf_prog_detach2(progfd, mapfd, attach_type); attach_type 81 tools/include/uapi/linux/bpf.h __u32 attach_type; /* program attach type */ attach_type 434 tools/include/uapi/linux/bpf.h __u32 attach_type; attach_type 478 tools/include/uapi/linux/bpf.h __u32 attach_type; attach_type 470 tools/lib/bpf/bpf.c attr.attach_type = type; attach_type 482 tools/lib/bpf/bpf.c attr.attach_type = type; attach_type 494 tools/lib/bpf/bpf.c attr.attach_type = type; attach_type 507 tools/lib/bpf/bpf.c attr.query.attach_type = type; attach_type 4489 tools/lib/bpf/libbpf.c enum bpf_attach_type attach_type; attach_type 4562 tools/lib/bpf/libbpf.c static char *libbpf_get_type_names(bool attach_type) attach_type 4574 tools/lib/bpf/libbpf.c if (attach_type && !section_names[i].is_attachable) attach_type 4615 tools/lib/bpf/libbpf.c enum bpf_attach_type *attach_type) attach_type 4628 tools/lib/bpf/libbpf.c *attach_type = section_names[i].attach_type; attach_type 129 tools/lib/bpf/libbpf.h enum bpf_attach_type *attach_type); attach_type 36 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c enum bpf_prog_type attach_type; attach_type 105 tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c err = check_load(test->file, test->attach_type); attach_type 21 tools/testing/selftests/bpf/prog_tests/sockopt.c enum bpf_attach_type attach_type; attach_type 48 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 60 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 71 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 92 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 116 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 142 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 158 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 185 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 203 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 219 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 246 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 268 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 287 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 309 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 324 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 338 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 373 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_GETSOCKOPT, attach_type 393 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 405 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 416 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 438 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 461 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 487 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 505 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 541 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 559 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 595 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 611 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 627 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 644 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 681 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 707 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 723 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 737 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 751 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 788 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 834 tools/testing/selftests/bpf/prog_tests/sockopt.c .attach_type = BPF_CGROUP_SETSOCKOPT, attach_type 892 tools/testing/selftests/bpf/prog_tests/sockopt.c err = bpf_prog_attach(prog_fd, cgroup_fd, test->attach_type, 0); attach_type 965 tools/testing/selftests/bpf/prog_tests/sockopt.c bpf_prog_detach2(prog_fd, cgroup_fd, test->attach_type); attach_type 141 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c enum bpf_attach_type attach_type; attach_type 146 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c err = libbpf_prog_type_by_name(title, &prog_type, &attach_type); attach_type 159 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c attach_type, 0); attach_type 7 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c enum bpf_attach_type attach_type; attach_type 12 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c err = libbpf_prog_type_by_name(title, &prog_type, &attach_type); attach_type 25 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c attach_type, BPF_F_ALLOW_MULTI); attach_type 36 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c enum bpf_attach_type attach_type; attach_type 41 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c err = libbpf_prog_type_by_name(title, &prog_type, &attach_type); attach_type 50 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c attach_type); attach_type 136 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c enum bpf_attach_type attach_type; attach_type 141 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c err = libbpf_prog_type_by_name(title, &prog_type, &attach_type); attach_type 154 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c attach_type, 0); attach_type 18 tools/testing/selftests/bpf/test_section_names.c enum bpf_attach_type attach_type; attach_type 183 tools/testing/selftests/bpf/test_section_names.c enum bpf_attach_type attach_type; attach_type 186 tools/testing/selftests/bpf/test_section_names.c rc = libbpf_attach_type_by_name(test->sec_name, &attach_type); attach_type 196 tools/testing/selftests/bpf/test_section_names.c if (attach_type != test->expected_attach.attach_type) { attach_type 197 tools/testing/selftests/bpf/test_section_names.c warnx("attach: unexpected attach_type=%d for %s", attach_type, attach_type 31 tools/testing/selftests/bpf/test_sock.c enum bpf_attach_type attach_type; attach_type 329 tools/testing/selftests/bpf/test_sock.c enum bpf_attach_type attach_type) attach_type 336 tools/testing/selftests/bpf/test_sock.c attr.expected_attach_type = attach_type; attach_type 350 tools/testing/selftests/bpf/test_sock.c enum bpf_attach_type attach_type) attach_type 352 tools/testing/selftests/bpf/test_sock.c return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); attach_type 413 tools/testing/selftests/bpf/test_sock.c if (attach_sock_prog(cgfd, progfd, test->attach_type) == -1) { attach_type 440 tools/testing/selftests/bpf/test_sock.c bpf_prog_detach(cgfd, test->attach_type); attach_type 65 tools/testing/selftests/bpf/test_sock_addr.c enum bpf_attach_type attach_type; attach_type 1537 tools/testing/selftests/bpf/test_sock_addr.c err = bpf_prog_attach(progfd, cgfd, test->attach_type, attach_type 1549 tools/testing/selftests/bpf/test_sock_addr.c switch (test->attach_type) { attach_type 1589 tools/testing/selftests/bpf/test_sock_addr.c bpf_prog_detach(cgfd, test->attach_type); attach_type 132 tools/testing/selftests/bpf/test_socket_cookie.c enum bpf_attach_type attach_type; attach_type 156 tools/testing/selftests/bpf/test_socket_cookie.c if (libbpf_attach_type_by_name(prog_name, &attach_type)) attach_type 159 tools/testing/selftests/bpf/test_socket_cookie.c err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type, attach_type 32 tools/testing/selftests/bpf/test_sysctl.c enum bpf_attach_type attach_type; attach_type 53 tools/testing/selftests/bpf/test_sysctl.c .attach_type = 0, attach_type 64 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 75 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 96 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 117 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 133 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 154 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 181 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 197 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 239 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 281 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 336 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 385 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 427 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 463 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 502 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 541 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 576 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 613 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 647 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 683 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 733 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 772 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 807 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 841 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 886 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 956 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 989 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1033 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1074 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1115 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1157 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1202 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1247 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1298 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1345 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1353 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1362 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1370 tools/testing/selftests/bpf/test_sysctl.c .attach_type = BPF_CGROUP_SYSCTL, attach_type 1528 tools/testing/selftests/bpf/test_sysctl.c enum bpf_attach_type atype = test->attach_type;