Home
last modified time | relevance | path

Searched refs:cg1 (Results 1 – 2 of 2) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dcgroup_attach_multi.c80 int cg1 = 0, cg2 = 0, cg3 = 0, cg4 = 0, cg5 = 0, key = 0; in serial_test_cgroup_attach_multi() local
97 cg1 = create_and_get_cgroup("/cg1"); in serial_test_cgroup_attach_multi()
98 if (CHECK_FAIL(cg1 < 0)) in serial_test_cgroup_attach_multi()
116 if (CHECK(bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi()
197 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
204 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
212 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
220 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
228 if (CHECK(bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
235 if (CHECK(bpf_prog_attach_opts(allow_prog[6], cg1, in serial_test_cgroup_attach_multi()
[all …]
/linux-6.3-rc2/samples/bpf/
A Dhbm.c167 int cg1 = 0; in run_bpf_prog() local
179 cg1 = create_and_get_cgroup(cg_dir); in run_bpf_prog()
180 if (!cg1) { in run_bpf_prog()
201 link = bpf_program__attach_cgroup(bpf_prog, cg1); in run_bpf_prog()
414 if (cg1 != -1) in run_bpf_prog()
415 close(cg1); in run_bpf_prog()

Completed in 4 milliseconds