Searched refs:cgroup_fd (Results 1 – 4 of 4) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_dev_cgroup.c | 30 int prog_fd, cgroup_fd; in main() local 45 cgroup_fd = create_and_get_cgroup(TEST_CGROUP); in main() 46 if (!cgroup_fd) { in main() 57 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_DEVICE, 0)) { in main() 62 if (bpf_prog_query(cgroup_fd, BPF_CGROUP_DEVICE, 0, NULL, NULL, in main()
|
D | test_netcnt.c | 42 int prog_fd, cgroup_fd; in main() local 67 cgroup_fd = create_and_get_cgroup(TEST_CGROUP); in main() 68 if (!cgroup_fd) { in main() 79 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main() 89 if (bpf_prog_query(cgroup_fd, BPF_CGROUP_INET_EGRESS, 0, NULL, NULL, in main()
|
D | test_cgroup_storage.c | 40 int map_fd, percpu_map_fd, prog_fd, cgroup_fd; in main() local 83 cgroup_fd = create_and_get_cgroup(TEST_CGROUP); in main() 84 if (!cgroup_fd) { in main() 95 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main()
|
D | get_cgroup_id_user.c | 53 int cgroup_fd, cgidmap_fd, pidmap_fd; in main() local 66 cgroup_fd = create_and_get_cgroup(TEST_CGROUP); in main() 67 if (CHECK(cgroup_fd < 0, "create_and_get_cgroup", "err %d errno %d\n", in main() 68 cgroup_fd, errno)) in main()
|