/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | cgroup_attach_override.c | 45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override() 63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override() 72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override() 81 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override() 87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override() 95 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override() 101 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0), in serial_test_cgroup_attach_override() 106 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override() 111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override() 116 if (CHECK(bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, 0), in serial_test_cgroup_attach_override() [all …]
|
D | cgroup_attach_multi.c | 116 if (CHECK(bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi() 121 if (CHECK(!bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi() 126 if (CHECK(bpf_prog_attach(allow_prog[1], cg1, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi() 131 if (CHECK(bpf_prog_attach(allow_prog[2], cg2, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi() 136 if (CHECK(bpf_prog_attach(allow_prog[3], cg3, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi() 141 if (CHECK(bpf_prog_attach(allow_prog[4], cg4, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi() 146 if (CHECK(bpf_prog_attach(allow_prog[5], cg5, BPF_CGROUP_INET_EGRESS, 0), in serial_test_cgroup_attach_multi() 155 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi() 159 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi() 168 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi() [all …]
|
D | cgroup_link.c | 75 err = bpf_prog_query(cgs[0].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link() 83 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link() 92 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link() 113 BPF_CGROUP_INET_EGRESS, BPF_F_ALLOW_MULTI); in serial_test_cgroup_link() 130 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link() 137 BPF_CGROUP_INET_EGRESS, 0); in serial_test_cgroup_link() 153 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link() 170 BPF_CGROUP_INET_EGRESS, 0); in serial_test_cgroup_link() 172 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link() 243 BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link()
|
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() 207 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 238 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated() 249 key.attach_type = BPF_CGROUP_INET_EGRESS; in test_isolated()
|
D | cgroup_attach_autodetach.c | 53 BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_autodetach() 59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in serial_test_cgroup_attach_autodetach()
|
D | section_names.c | 51 {0, BPF_PROG_TYPE_CGROUP_SKB, BPF_CGROUP_INET_EGRESS}, 52 {0, BPF_CGROUP_INET_EGRESS},
|
D | load_bytes_relative.c | 47 err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, in test_load_bytes_relative()
|
/Linux-v6.6/samples/bpf/ |
D | test_cgrp2_attach.c | 159 type = BPF_CGROUP_INET_EGRESS; in main()
|
/Linux-v6.6/tools/testing/selftests/bpf/ |
D | test_cgroup_storage.c | 84 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main()
|
/Linux-v6.6/Documentation/bpf/libbpf/ |
D | program_types.rst | 28 | | ``BPF_CGROUP_INET_EGRESS`` | ``cgroup_skb…
|
/Linux-v6.6/tools/bpf/bpftool/ |
D | common.c | 1066 case BPF_CGROUP_INET_EGRESS: return "egress"; in bpf_attach_type_input_str()
|
/Linux-v6.6/kernel/bpf/ |
D | cgroup.c | 2519 case BPF_CGROUP_INET_EGRESS: in cgroup_common_func_proto() 2534 case BPF_CGROUP_INET_EGRESS: in cgroup_common_func_proto()
|
D | syscall.c | 2460 case BPF_CGROUP_INET_EGRESS: in bpf_prog_load_check_attach() 3664 case BPF_CGROUP_INET_EGRESS: in attach_type_to_prog_type() 3939 case BPF_CGROUP_INET_EGRESS: in bpf_prog_query()
|
D | verifier.c | 14560 if (env->prog->expected_attach_type == BPF_CGROUP_INET_EGRESS) { in check_return_code()
|
/Linux-v6.6/tools/include/uapi/linux/ |
D | bpf.h | 995 BPF_CGROUP_INET_EGRESS, enumerator
|
/Linux-v6.6/include/uapi/linux/ |
D | bpf.h | 995 BPF_CGROUP_INET_EGRESS, enumerator
|
/Linux-v6.6/tools/lib/bpf/ |
D | libbpf.c | 76 [BPF_CGROUP_INET_EGRESS] = "cgroup_inet_egress", 8834 SEC_DEF("cgroup_skb/egress", CGROUP_SKB, BPF_CGROUP_INET_EGRESS, SEC_ATTACHABLE_OPT),
|