]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/consts.py: Add more cpu controller output (v2)
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 17 Dec 2024 05:56:30 +0000 (11:26 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 13 Jan 2025 22:20:27 +0000 (15:20 -0700)
Upstream v6.13 kernel commit aefa398d93d5 ("cgroup/rstat: Tracking
cgroup-level niced CPU time") added "nice_usec" to the cgroup base stats
cputime, add it to the list of cpu controller (v2) expected output.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/consts.py

index 3e1af346aa0f4989a419b6a048be4534804872f0..1978d768f630b9e6aad4e4d553c5535dfa01fc16 100644 (file)
@@ -182,6 +182,28 @@ EXPECTED_CPU_OUT_V2 = [
     cpu.max.burst: 0
     cpu.max: max 100000
     cpu.uclamp.min: 0.00
+    cpu.uclamp.max: max""",
+    # with PSI, cfs_bandwidth with cpu.stat nr_busts, burst_time, force_idle
+    # cpu.stat.local, cgroup bstat with nice_usec
+    """cpu.weight: 100
+    cpu.stat: usage_usec 0
+            user_usec 0
+            system_usec 0
+            nice_usec 0
+            core_sched.force_idle_usec 0
+            nr_periods 0
+            nr_throttled 0
+            throttled_usec 0
+            nr_bursts 0
+            burst_usec 0
+    cpu.weight.nice: 0
+    cpu.pressure: some avg10=0.00 avg60=0.00 avg300=0.00 total=0
+            full avg10=0.00 avg60=0.00 avg300=0.00 total=0
+    cpu.idle: 0
+    cpu.stat.local: throttled_usec 0
+    cpu.max.burst: 0
+    cpu.max: max 100000
+    cpu.uclamp.min: 0.00
     cpu.uclamp.max: max"""
 ]