diff options
| author | Shaojie Sun <sunshaojie@kylinos.cn> | 2026-07-30 21:07:17 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-02 09:50:55 -1000 |
| commit | 77bc7e952f660a7bab9741fe352f960f3675a650 (patch) | |
| tree | 0e3e1e07a795dacc8788081db3653af0c4c5ad51 /tools/perf/scripts/python/stackcollapse.py | |
| parent | ae649c9636244a7529a1559c143d4ce9c5da62fa (diff) | |
selftests/cgroup: add user_usec sanity check in test_cpucg_nice
In test_cpucg_nice, after the child process exits, user_usec is
read from cpu.stat but the value is not checked. Add a sanity check
to ensure user_usec > 0, analogous to test_cpucg_stats(), so that
the test fails early if CPU usage wasn't properly accounted.
Signed-off-by: Shaojie Sun <sunshaojie@kylinos.cn>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Acked-by: Tao Cui <cuitao@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
