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

From: Yonghong Song
Date: Thu May 04 2023 - 10:30:02 EST




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>