summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorChen Ridong <chenridong@huawei.com>2024-10-18 11:15:20 +0300
committerTejun Heo <tj@kernel.org>2024-10-21 23:02:35 +0300
commit2190df6c91373fdec6db9fc07e427084f232f57e (patch)
tree89ffc02c97f94ee7458b1df333ef9da6531a5ec7 /tools/perf/scripts/python/task-analyzer.py
parentfeb301c60970bd2a1310a53ce2d6e4375397a51b (diff)
downloadlinux-2190df6c91373fdec6db9fc07e427084f232f57e.tar.xz
cgroup/bpf: only cgroup v2 can be attached by bpf programs
Only cgroup v2 can be attached by bpf programs, so this patch introduces that cgroup_bpf_inherit and cgroup_bpf_offline can only be called in cgroup v2, and this can fix the memleak mentioned by commit 04f8ef5643bc ("cgroup: Fix memory leak caused by missing cgroup_bpf_offline"), which has been reverted. Fixes: 2b0d3d3e4fcf ("percpu_ref: reduce memory footprint of percpu_ref in fast path") Fixes: 4bfc0bb2c60e ("bpf: decouple the lifetime of cgroup_bpf from cgroup itself") Link: https://lore.kernel.org/cgroups/aka2hk5jsel5zomucpwlxsej6iwnfw4qu5jkrmjhyfhesjlfdw@46zxhg5bdnr7/ Signed-off-by: Chen Ridong <chenridong@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions