diff options
author | Feng Zhou <zhoufeng.zf@bytedance.com> | 2023-05-06 11:15:44 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-05-06 13:56:38 -0700 |
commit | b5ad4cdc46c7d6e7f8d2c9e24b6c9a1edec95154 (patch) | |
tree | da5fd807709df253d71fc116187f4de1f6788217 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | f4dea9689c5fea3d07170c2cb0703e216f1a0922 (diff) |
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/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions