Skip to content
Commit aecd408b authored by Yafang Shao's avatar Yafang Shao Committed by Tejun Heo
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarYafang Shao <laoar.shao@gmail.com>
Cc: Hou Tao <houtao@huaweicloud.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 0008454e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment