aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorFeng Zhou <zhoufeng.zf@bytedance.com>2023-05-06 11:15:44 +0800
committerAlexei Starovoitov <ast@kernel.org>2023-05-06 13:56:38 -0700
commitb5ad4cdc46c7d6e7f8d2c9e24b6c9a1edec95154 (patch)
treeda5fd807709df253d71fc116187f4de1f6788217 /tools/lib/bpf/bpf_helpers.h
parentsamples/bpf: Fix buffer overflow in tcp_basertt (diff)
downloadwireguard-linux-b5ad4cdc46c7d6e7f8d2c9e24b6c9a1edec95154.tar.xz
wireguard-linux-b5ad4cdc46c7d6e7f8d2c9e24b6c9a1edec95154.zip
bpf: Add bpf_task_under_cgroup() kfunc
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@bytedance.com> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/r/20230506031545.35991-2-zhoufeng.zf@bytedance.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions