Re: [PATCH v3 bpf-next 06/11] bpf: Add a new kfunc for cgroup1 hierarchy

Tejun Heo
2023-11-09T21:29:57Z

On Sun, Oct 29, 2023 at 06:14:33AM +0000, Yafang Shao wrote:
> 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>

Thanks.

--
tejun