Home
last modified time | relevance | path

Searched refs:cgroup_fd (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/tools/bpf/bpftool/
Dcgroup.c98 static int count_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type) in count_attached_bpf_progs() argument
103 ret = bpf_prog_query(cgroup_fd, type, 0, NULL, NULL, &prog_cnt); in count_attached_bpf_progs()
110 static int show_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type, in show_attached_bpf_progs() argument
121 ret = bpf_prog_query(cgroup_fd, type, 0, &attach_flags, prog_ids, in show_attached_bpf_progs()
154 int cgroup_fd; in do_show() local
165 cgroup_fd = open(argv[0], O_RDONLY); in do_show()
166 if (cgroup_fd < 0) { in do_show()
184 if (show_attached_bpf_progs(cgroup_fd, type, 0) == 0) in do_show()
191 close(cgroup_fd); in do_show()
208 int cgroup_fd; in do_show_tree_fn() local
[all …]
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_dev_cgroup.c30 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()
Dtest_cgroup_storage.c31 int map_fd, prog_fd, cgroup_fd; in main() local
57 cgroup_fd = create_and_get_cgroup(TEST_CGROUP); in main()
58 if (!cgroup_fd) { in main()
69 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main()
Dget_cgroup_id_user.c53 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()
/Linux-v4.19/kernel/events/
Dcore.c9917 void *context, int cgroup_fd) in perf_event_alloc() argument
10039 if (cgroup_fd != -1) { in perf_event_alloc()
10040 err = perf_cgroup_connect(cgroup_fd, event, attr, group_leader); in perf_event_alloc()
10407 int cgroup_fd = -1; in SYSCALL_DEFINE5() local
10500 cgroup_fd = pid; in SYSCALL_DEFINE5()
10503 NULL, NULL, cgroup_fd); in SYSCALL_DEFINE5()