]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/consts: Add cpu controller throttled_usec (v2)
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 12 Jun 2024 05:46:55 +0000 (11:16 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 20 Jun 2024 20:53:04 +0000 (14:53 -0600)
Add cpu controller (v2) stat output throttled_usec, introduced by
677ea015f231 ("sched: add throttled time stat for throttled children")

-----------------------------------------------------------------
Test Results:
        Run Date:                          Jun 12 05:46:40
        Passed:                                  1 test(s)
        Skipped:                                 0 test(s)
        Failed:                                  0 test(s)
-----------------------------------------------------------------
Timing Results:
        Test                                    Time (sec)
        --------------------------------------------------
        setup                                         0.00
        009-cgget-g_flag_controller_only.py           0.09
        teardown                                      0.00
        --------------------------------------------------
        Total Run Time                                0.09

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

index a5b875265c31907f718ac8294c62488de646f54a..13189199feb0bc2d227b80f5c3d33068064590ca 100644 (file)
@@ -161,6 +161,27 @@ 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
+    '''cpu.weight: 100
+    cpu.stat: usage_usec 0
+            user_usec 0
+            system_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'''
 ]