cgroup_fd 10425 kernel/events/core.c void *context, int cgroup_fd) cgroup_fd 10547 kernel/events/core.c if (cgroup_fd != -1) { cgroup_fd 10548 kernel/events/core.c err = perf_cgroup_connect(cgroup_fd, event, attr, group_leader); cgroup_fd 10563 kernel/events/core.c if (pmu->task_ctx_nr == perf_invalid_context && cgroup_fd != -1) { cgroup_fd 10915 kernel/events/core.c int cgroup_fd = -1; cgroup_fd 11015 kernel/events/core.c cgroup_fd = pid; cgroup_fd 11018 kernel/events/core.c NULL, NULL, cgroup_fd); cgroup_fd 107 tools/bpf/bpftool/cgroup.c static int count_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type) cgroup_fd 112 tools/bpf/bpftool/cgroup.c ret = bpf_prog_query(cgroup_fd, type, query_flags, NULL, cgroup_fd 120 tools/bpf/bpftool/cgroup.c static int cgroup_has_attached_progs(int cgroup_fd) cgroup_fd 126 tools/bpf/bpftool/cgroup.c int count = count_attached_bpf_progs(cgroup_fd, type); cgroup_fd 139 tools/bpf/bpftool/cgroup.c static int show_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type, cgroup_fd 150 tools/bpf/bpftool/cgroup.c ret = bpf_prog_query(cgroup_fd, type, query_flags, &attach_flags, cgroup_fd 185 tools/bpf/bpftool/cgroup.c int cgroup_fd; cgroup_fd 209 tools/bpf/bpftool/cgroup.c cgroup_fd = open(path, O_RDONLY); cgroup_fd 210 tools/bpf/bpftool/cgroup.c if (cgroup_fd < 0) { cgroup_fd 215 tools/bpf/bpftool/cgroup.c has_attached_progs = cgroup_has_attached_progs(cgroup_fd); cgroup_fd 238 tools/bpf/bpftool/cgroup.c if (show_attached_bpf_progs(cgroup_fd, type, 0) == 0) cgroup_fd 246 tools/bpf/bpftool/cgroup.c close(cgroup_fd); cgroup_fd 263 tools/bpf/bpftool/cgroup.c int cgroup_fd; cgroup_fd 268 tools/bpf/bpftool/cgroup.c cgroup_fd = open(fpath, O_RDONLY); cgroup_fd 269 tools/bpf/bpftool/cgroup.c if (cgroup_fd < 0) { cgroup_fd 274 tools/bpf/bpftool/cgroup.c has_attached_progs = cgroup_has_attached_progs(cgroup_fd); cgroup_fd 278 tools/bpf/bpftool/cgroup.c close(cgroup_fd); cgroup_fd 281 tools/bpf/bpftool/cgroup.c close(cgroup_fd); cgroup_fd 295 tools/bpf/bpftool/cgroup.c show_attached_bpf_progs(cgroup_fd, type, ftw->level); cgroup_fd 309 tools/bpf/bpftool/cgroup.c close(cgroup_fd); cgroup_fd 399 tools/bpf/bpftool/cgroup.c int cgroup_fd, prog_fd; cgroup_fd 409 tools/bpf/bpftool/cgroup.c cgroup_fd = open(argv[0], O_RDONLY); cgroup_fd 410 tools/bpf/bpftool/cgroup.c if (cgroup_fd < 0) { cgroup_fd 438 tools/bpf/bpftool/cgroup.c if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { cgroup_fd 451 tools/bpf/bpftool/cgroup.c close(cgroup_fd); cgroup_fd 459 tools/bpf/bpftool/cgroup.c int prog_fd, cgroup_fd; cgroup_fd 467 tools/bpf/bpftool/cgroup.c cgroup_fd = open(argv[0], O_RDONLY); cgroup_fd 468 tools/bpf/bpftool/cgroup.c if (cgroup_fd < 0) { cgroup_fd 485 tools/bpf/bpftool/cgroup.c if (bpf_prog_detach2(prog_fd, cgroup_fd, attach_type)) { cgroup_fd 498 tools/bpf/bpftool/cgroup.c close(cgroup_fd); cgroup_fd 53 tools/testing/selftests/bpf/get_cgroup_id_user.c int cgroup_fd, cgidmap_fd, pidmap_fd; cgroup_fd 66 tools/testing/selftests/bpf/get_cgroup_id_user.c cgroup_fd = create_and_get_cgroup(TEST_CGROUP); cgroup_fd 67 tools/testing/selftests/bpf/get_cgroup_id_user.c if (CHECK(cgroup_fd < 0, "create_and_get_cgroup", "err %d errno %d\n", cgroup_fd 68 tools/testing/selftests/bpf/get_cgroup_id_user.c cgroup_fd, errno)) cgroup_fd 877 tools/testing/selftests/bpf/prog_tests/sockopt.c static int run_test(int cgroup_fd, struct sockopt_test *test) cgroup_fd 892 tools/testing/selftests/bpf/prog_tests/sockopt.c err = bpf_prog_attach(prog_fd, cgroup_fd, test->attach_type, 0); cgroup_fd 965 tools/testing/selftests/bpf/prog_tests/sockopt.c bpf_prog_detach2(prog_fd, cgroup_fd, test->attach_type); cgroup_fd 973 tools/testing/selftests/bpf/prog_tests/sockopt.c int cgroup_fd, i; cgroup_fd 975 tools/testing/selftests/bpf/prog_tests/sockopt.c cgroup_fd = test__join_cgroup("/sockopt"); cgroup_fd 976 tools/testing/selftests/bpf/prog_tests/sockopt.c if (CHECK_FAIL(cgroup_fd < 0)) cgroup_fd 981 tools/testing/selftests/bpf/prog_tests/sockopt.c CHECK_FAIL(run_test(cgroup_fd, &tests[i])); cgroup_fd 984 tools/testing/selftests/bpf/prog_tests/sockopt.c close(cgroup_fd); cgroup_fd 139 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c static int prog_attach(struct bpf_object *obj, int cgroup_fd, const char *title) cgroup_fd 158 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, cgroup_fd 168 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c static void run_test(int cgroup_fd) cgroup_fd 184 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c err = prog_attach(obj, cgroup_fd, "cgroup/getsockopt"); cgroup_fd 188 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c err = prog_attach(obj, cgroup_fd, "cgroup/setsockopt"); cgroup_fd 227 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c int cgroup_fd; cgroup_fd 229 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c cgroup_fd = test__join_cgroup("/sockopt_inherit"); cgroup_fd 230 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c if (CHECK_FAIL(cgroup_fd < 0)) cgroup_fd 233 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c run_test(cgroup_fd); cgroup_fd 234 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c close(cgroup_fd); cgroup_fd 5 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c static int prog_attach(struct bpf_object *obj, int cgroup_fd, const char *title) cgroup_fd 24 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, cgroup_fd 34 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c static int prog_detach(struct bpf_object *obj, int cgroup_fd, const char *title) cgroup_fd 49 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c err = bpf_prog_detach2(bpf_program__fd(prog), cgroup_fd, cgroup_fd 134 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c static int prog_attach(struct bpf_object *obj, int cgroup_fd, const char *title) cgroup_fd 153 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, cgroup_fd 163 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c static void run_test(int cgroup_fd) cgroup_fd 176 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c err = prog_attach(obj, cgroup_fd, "cgroup/getsockopt"); cgroup_fd 180 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c err = prog_attach(obj, cgroup_fd, "cgroup/setsockopt"); cgroup_fd 192 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c int cgroup_fd; cgroup_fd 194 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c cgroup_fd = test__join_cgroup("/sockopt_sk"); cgroup_fd 195 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c if (CHECK_FAIL(cgroup_fd < 0)) cgroup_fd 198 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c run_test(cgroup_fd); cgroup_fd 199 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c close(cgroup_fd); cgroup_fd 119 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c static int run_test(int cgroup_fd, int server_fd) cgroup_fd 142 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_SOCK_OPS, 0); cgroup_fd 250 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c int server_fd, cgroup_fd; cgroup_fd 253 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c cgroup_fd = test__join_cgroup("/tcp_rtt"); cgroup_fd 254 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c if (CHECK_FAIL(cgroup_fd < 0)) cgroup_fd 269 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c CHECK_FAIL(run_test(cgroup_fd, server_fd)); cgroup_fd 273 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c close(cgroup_fd); cgroup_fd 40 tools/testing/selftests/bpf/test_cgroup_storage.c int map_fd, percpu_map_fd, prog_fd, cgroup_fd; cgroup_fd 83 tools/testing/selftests/bpf/test_cgroup_storage.c cgroup_fd = create_and_get_cgroup(TEST_CGROUP); cgroup_fd 84 tools/testing/selftests/bpf/test_cgroup_storage.c if (cgroup_fd < 0) { cgroup_fd 95 tools/testing/selftests/bpf/test_cgroup_storage.c if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { cgroup_fd 27 tools/testing/selftests/bpf/test_dev_cgroup.c int prog_fd, cgroup_fd; cgroup_fd 42 tools/testing/selftests/bpf/test_dev_cgroup.c cgroup_fd = create_and_get_cgroup(TEST_CGROUP); cgroup_fd 43 tools/testing/selftests/bpf/test_dev_cgroup.c if (cgroup_fd < 0) { cgroup_fd 54 tools/testing/selftests/bpf/test_dev_cgroup.c if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_DEVICE, 0)) { cgroup_fd 59 tools/testing/selftests/bpf/test_dev_cgroup.c if (bpf_prog_query(cgroup_fd, BPF_CGROUP_DEVICE, 0, NULL, NULL, cgroup_fd 42 tools/testing/selftests/bpf/test_netcnt.c int prog_fd, cgroup_fd; cgroup_fd 67 tools/testing/selftests/bpf/test_netcnt.c cgroup_fd = create_and_get_cgroup(TEST_CGROUP); cgroup_fd 68 tools/testing/selftests/bpf/test_netcnt.c if (cgroup_fd < 0) { cgroup_fd 79 tools/testing/selftests/bpf/test_netcnt.c if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { cgroup_fd 89 tools/testing/selftests/bpf/test_netcnt.c if (bpf_prog_query(cgroup_fd, BPF_CGROUP_INET_EGRESS, 0, NULL, NULL, cgroup_fd 419 tools/testing/selftests/bpf/test_sock_fields.c int cgroup_fd, egress_fd, ingress_fd, err; cgroup_fd 431 tools/testing/selftests/bpf/test_sock_fields.c cgroup_fd = create_and_get_cgroup(TEST_CGROUP); cgroup_fd 432 tools/testing/selftests/bpf/test_sock_fields.c CHECK(cgroup_fd == -1, "create_and_get_cgroup()", cgroup_fd 433 tools/testing/selftests/bpf/test_sock_fields.c "cgroup_fd:%d errno:%d", cgroup_fd, errno); cgroup_fd 448 tools/testing/selftests/bpf/test_sock_fields.c err = bpf_prog_attach(egress_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0); cgroup_fd 452 tools/testing/selftests/bpf/test_sock_fields.c err = bpf_prog_attach(ingress_fd, cgroup_fd, cgroup_fd 456 tools/testing/selftests/bpf/test_sock_fields.c close(cgroup_fd);