Searched refs:cg2 (Results 1 - 3 of 3) sorted by relevance

/linux-master/samples/bpf/
H A Dtest_cgrp2_array_pin.c27 const char *pinned_file = NULL, *cg2 = NULL; local
46 cg2 = optarg;
54 if (!cg2 || !pinned_file) {
59 cg2_fd = open(cg2, O_RDONLY);
62 cg2, strerror(errno), errno);
H A Dtest_current_task_under_cgroup_user.c17 int cg2 = -1, idx = 0, rc = 1; local
60 cg2 = create_and_get_cgroup(CGROUP_PATH);
62 if (cg2 < 0)
65 if (bpf_map_update_elem(map_fd[0], &idx, &cg2, BPF_ANY)) {
106 if (cg2 != -1)
107 close(cg2);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_multi.c80 int cg1 = 0, cg2 = 0, cg3 = 0, cg4 = 0, cg5 = 0, key = 0; local
100 cg2 = create_and_get_cgroup("/cg1/cg2");
101 if (CHECK_FAIL(cg2 < 0))
103 cg3 = create_and_get_cgroup("/cg1/cg2/cg3");
106 cg4 = create_and_get_cgroup("/cg1/cg2/cg3/cg4");
109 cg5 = create_and_get_cgroup("/cg1/cg2/cg3/cg4/cg5");
113 if (CHECK_FAIL(join_cgroup("/cg1/cg2/cg3/cg4/cg5")))
131 if (CHECK(bpf_prog_attach(allow_prog[2], cg2, BPF_CGROUP_INET_EGRESS,
287 close(cg2);
[all...]

Completed in 266 milliseconds