summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorAndrea Righi <arighi@nvidia.com>2026-09-30 11:00:19 +0200
committerTejun Heo <tj@kernel.org>2026-09-30 13:56:41 -1000
commit3521f92ddd5f1a397e6ed9a6727694ca85950fb3 (patch)
tree56780f16ec0eac28f64332d119c4227aebcba7bb /tools/perf/scripts/python/flamegraph.py
parente28807c846081ab04ba5eb77e588878ee3811961 (diff)
selftests/sched_ext: Test scx_bpf_cgroup_nr_cpus()
Verify that scx_bpf_cgroup_nr_cpus() reports the number of CPUs in a cgroup's effective cpuset. Create a cgroup-v2 subtree where a child owns a cpuset and a leaf inherits it. Sample the kfunc from a BPF_PROG_TYPE_SYSCALL program and compare it with cpuset.cpus.effective for the root, the cpuset owner and the inheriting leaf, without a scheduler attached. Attach a scheduler and verify the value observed from ops.cgroup_init(). Then restrict the child's cpuset to a non-contiguous and a single-CPU set, and finally disable cpuset below the parent so that both cgroups inherit the parent's cpuset. A disabled cpuset css stays attached to its cgroup until it is asynchronously offlined, so poll briefly for the last step. Skip the test when the required controllers or two CPUs are unavailable. Assisted-by: LLM Signed-off-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions