| /Linux-v4.19/tools/bpf/bpftool/ |
| D | cgroup.c | 335 enum bpf_attach_type attach_type; in do_attach() local 352 attach_type = parse_attach_type(argv[1]); in do_attach() 353 if (attach_type == __MAX_BPF_ATTACH_TYPE) { in do_attach() 375 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { in do_attach() 395 enum bpf_attach_type attach_type; in do_detach() local 410 attach_type = parse_attach_type(argv[1]); in do_detach() 411 if (attach_type == __MAX_BPF_ATTACH_TYPE) { in do_detach() 422 if (bpf_prog_detach2(prog_fd, cgroup_fd, attach_type)) { in do_detach()
|
| /Linux-v4.19/tools/testing/selftests/bpf/ |
| D | test_sock.c | 29 enum bpf_attach_type attach_type; member 325 enum bpf_attach_type attach_type) in load_sock_prog() argument 331 attr.expected_attach_type = attach_type; in load_sock_prog() 340 enum bpf_attach_type attach_type) in attach_sock_prog() argument 342 return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); in attach_sock_prog() 403 if (attach_sock_prog(cgfd, progfd, test->attach_type) == -1) { in run_test_case() 430 bpf_prog_detach(cgfd, test->attach_type); in run_test_case()
|
| D | test_socket_cookie.c | 138 enum bpf_attach_type attach_type; in run_test() local 162 attach_type = BPF_CGROUP_INET6_CONNECT; in run_test() 164 attach_type = BPF_CGROUP_SOCK_OPS; in run_test() 170 err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type, in run_test()
|
| D | test_sock_addr.c | 64 enum bpf_attach_type attach_type; member 1295 err = bpf_prog_attach(progfd, cgfd, test->attach_type, in run_test_case() 1304 switch (test->attach_type) { in run_test_case() 1340 bpf_prog_detach(cgfd, test->attach_type); in run_test_case()
|
| /Linux-v4.19/kernel/bpf/ |
| D | local_storage.c | 39 else if (key1->attach_type < key2->attach_type) in bpf_cgroup_storage_key_cmp() 41 else if (key1->attach_type > key2->attach_type) in bpf_cgroup_storage_key_cmp() 181 next->attach_type = storage->key.attach_type; in cgroup_storage_get_next_key() 353 storage->key.attach_type = type; in bpf_cgroup_storage_link()
|
| D | syscall.c | 1227 enum bpf_prog_type *attach_type, bool attach_drv) in bpf_prog_get_ok() argument 1230 if (!attach_type) in bpf_prog_get_ok() 1233 if (prog->type != *attach_type) in bpf_prog_get_ok() 1241 static struct bpf_prog *__bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, in __bpf_prog_get() argument 1250 if (!bpf_prog_get_ok(prog, attach_type, attach_drv)) { in __bpf_prog_get() 1554 enum bpf_attach_type attach_type) in bpf_prog_attach_check_attach_type() argument 1559 return attach_type == prog->expected_attach_type ? 0 : -EINVAL; in bpf_prog_attach_check_attach_type() 1585 switch (attr->attach_type) { in bpf_prog_attach() 1627 if (bpf_prog_attach_check_attach_type(prog, attr->attach_type)) { in bpf_prog_attach() 1649 #define BPF_PROG_DETACH_LAST_FIELD attach_type [all …]
|
| D | cgroup.c | 410 enum bpf_attach_type type = attr->query.attach_type; in __cgroup_bpf_query() 461 ret = cgroup_bpf_attach(cgrp, prog, attr->attach_type, in cgroup_bpf_prog_attach() 481 ret = cgroup_bpf_detach(cgrp, prog, attr->attach_type, 0); in cgroup_bpf_prog_detach()
|
| D | sockmap.c | 2094 err = sock_map_prog(map, prog, attr->attach_type); in sockmap_get_from_fd()
|
| /Linux-v4.19/tools/lib/bpf/ |
| D | bpf.c | 341 attr.attach_type = type; in bpf_prog_attach() 353 attr.attach_type = type; in bpf_prog_detach() 365 attr.attach_type = type; in bpf_prog_detach2() 378 attr.query.attach_type = type; in bpf_prog_query()
|
| /Linux-v4.19/tools/include/uapi/linux/ |
| D | bpf.h | 80 __u32 attach_type; /* program attach type */ member 343 __u32 attach_type; member 377 __u32 attach_type; member
|
| /Linux-v4.19/include/uapi/linux/ |
| D | bpf.h | 80 __u32 attach_type; /* program attach type */ member 343 __u32 attach_type; member 377 __u32 attach_type; member
|
| /Linux-v4.19/net/core/ |
| D | filter.c | 5298 enum bpf_attach_type attach_type) in __sock_filter_check_attach_type() argument 5304 switch (attach_type) { in __sock_filter_check_attach_type() 5311 switch (attach_type) { in __sock_filter_check_attach_type() 5318 switch (attach_type) { in __sock_filter_check_attach_type() 5325 switch (attach_type) { in __sock_filter_check_attach_type()
|