aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
diff options
context:
space:
mode:
authorYafang Shao <laoar.shao@gmail.com>2023-11-11 09:00:29 +0000
committerAlexei Starovoitov <ast@kernel.org>2023-11-14 08:56:56 -0800
commitfe977716b40cb98cf9c91a66454adf3dc2f8c59a (patch)
tree928fa01e194fc04f3471c9e908d7c3fcd95e479b /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
parent727a92d62fd6a382b4c5972008e45667e707b0e4 (diff)
bpf: Add a new kfunc for cgroup1 hierarchy
A new kfunc is added to acquire cgroup1 of a task: - bpf_task_get_cgroup1 Acquires the associated cgroup of a task whithin a specific cgroup1 hierarchy. The cgroup1 hierarchy is identified by its hierarchy ID. This new kfunc enables the tracing of tasks within a designated container or cgroup directory in BPF programs. Suggested-by: Tejun Heo <tj@kernel.org> Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20231111090034.4248-2-laoar.shao@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions