diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2023-10-29 06:14:32 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-11-09 13:25:47 -1000 |
commit | aecd408b7e50742868b3305c24325a89024e2a30 (patch) | |
tree | cef667773cd2ee6e9880ef19f62d0a02562dada6 /tools/testing/selftests/cgroup | |
parent | 0008454e8fd30ed0017a9a35b8dd708f168931b8 (diff) | |
download | linux-stable-aecd408b7e50742868b3305c24325a89024e2a30.tar.gz linux-stable-aecd408b7e50742868b3305c24325a89024e2a30.tar.bz2 linux-stable-aecd408b7e50742868b3305c24325a89024e2a30.zip |
cgroup: Add a new helper for cgroup1 hierarchy
A new helper is added for cgroup1 hierarchy:
- task_get_cgroup1
Acquires the associated cgroup of a task within a specific cgroup1
hierarchy. The cgroup1 hierarchy is identified by its hierarchy ID.
This helper function is added to facilitate the tracing of tasks within
a particular container or cgroup dir in BPF programs. It's important to
note that this helper is designed specifically for cgroup1 only.
tj: Use irsqsave/restore as suggested by Hou Tao <houtao@huaweicloud.com>.
Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Cc: Hou Tao <houtao@huaweicloud.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/testing/selftests/cgroup')
0 files changed, 0 insertions, 0 deletions