Re: [PATCH bpf-next v4 1/2] bpf: Add bpf_task_under_cgroup() kfunc
From: Yonghong Song
Date: Fri Apr 28 2023 - 12:25:35 EST
On 4/28/23 12:17 AM, 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>
Acked-by: Yonghong Song <yhs@xxxxxx>