[PATCH v3 0/2] Fix and extend cpu.stat

From: Abel Wu
Date: Thu Feb 06 2025 - 23:10:35 EST


Patch 1: fixes an issue that forceidle time can be inconsistant with
other cputimes.
Patch 2: extend run_delay accounting to cgroup to show how severely
a cgroup is stalled.

v3:
- Drop the cleanup patch. (Tejun)
- Modified 2nd patch's commit log.
v2:
- Fix internal function naming. (Michal Koutny)


Abel Wu (2):
cgroup/rstat: Fix forceidle time in cpu.stat
cgroup/rstat: Add run_delay accounting for cgroups

include/linux/cgroup-defs.h | 3 +++
include/linux/kernel_stat.h | 14 ++++++++++
kernel/cgroup/rstat.c | 54 ++++++++++++++++++++++++++-----------
kernel/sched/cputime.c | 12 +++++++++
kernel/sched/stats.h | 3 +++
5 files changed, 70 insertions(+), 16 deletions(-)

--
2.37.3