]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/consts: Add cpu controller throttled_usec (v1)
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 11 Jun 2024 06:05:38 +0000 (11:35 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 20 Jun 2024 20:52:48 +0000 (14:52 -0600)
Add cpu controller (v1) stat output throttled_usec, introduced by
677ea015f231 ("sched: add throttled time stat for throttled children")

-----------------------------------------------------------------
Test Results:
        Run Date:                          Jun 11 05:39:08
        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.07
        teardown                                      0.00
        --------------------------------------------------
        Total Run Time                                0.07

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

index c9f3fa3443e6b3885f9b526dbd671acfc425c691..a5b875265c31907f718ac8294c62488de646f54a 100644 (file)
@@ -65,6 +65,20 @@ EXPECTED_CPU_OUT_V1 = [
     cpu.idle: 0
     cpu.cfs_quota_us: -1
     cpu.uclamp.min: 0.00
+    cpu.uclamp.max: max''',
+    # cfs_bandwidth with cpu.stat nr_busts, burst_time
+    '''cpu.cfs_burst_us: 0
+    cpu.cfs_period_us: 100000
+    cpu.stat: nr_periods 0
+            nr_throttled 0
+            throttled_time 0
+            nr_bursts 0
+            burst_time 0
+    cpu.shares: 1024
+    cpu.idle: 0
+    cpu.stat.local: throttled_time 0
+    cpu.cfs_quota_us: -1
+    cpu.uclamp.min: 0.00
     cpu.uclamp.max: max'''
 ]