Re: Re: [PATCH bpf-next v5 1/2] bpf: Add bpf_task_under_cgroup() kfunc

From: Feng Zhou
Date: Thu May 04 2023 - 23:21:17 EST


在 2023/5/4 22:29, Yonghong Song 写道:


On 5/3/23 8:15 PM, Feng zhou wrote:
From: Feng Zhou <zhoufeng.zf@xxxxxxxxxxxxx>

Add a kfunc that's similar to the bpf_current_task_under_cgroup.
The difference is that it is a designated task.

When hook sched related functions, sometimes it is necessary to
specify a task instead of the current task.

Signed-off-by: Feng Zhou <zhoufeng.zf@xxxxxxxxxxxxx>

You can carry my Ack from previous revision since there
is no change to the patch.

Acked-by: Yonghong Song <yhs@xxxxxx>

Will do