diff options
| author | Yafang Shao <[email protected]> | 2023-11-11 09:00:29 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-11-14 16:56:56 +0000 |
| commit | fe977716b40cb98cf9c91a66454adf3dc2f8c59a (patch) | |
| tree | 928fa01e194fc04f3471c9e908d7c3fcd95e479b /tools/testing/selftests/bpf/prog_tests/cgroup1_hierarchy.c | |
| parent | selftests/bpf: Add assert for user stacks in test_task_stack (diff) | |
| download | kernel-fe977716b40cb98cf9c91a66454adf3dc2f8c59a.tar.gz kernel-fe977716b40cb98cf9c91a66454adf3dc2f8c59a.zip | |
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 <[email protected]>
Signed-off-by: Yafang Shao <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/cgroup1_hierarchy.c')
0 files changed, 0 insertions, 0 deletions
