On 6/8/21 2:00 AM, Michal Koutný wrote:
Hello.
On Thu, Jun 03, 2021 at 10:04:12AM -0600, Tom Hromatka
<tom.hroma...@oracle.com> wrote:
+++ b/ftests/009-cgget-g_flag_controller_only.py
[...]
+EXPECTED_OUT_V2 = '''009cgget:
+cpu.weight: 100
+cpu.stat: usage_usec 0
+ user_usec 0
+ system_usec 0
+ nr_periods 0
+ nr_throttled 0
+ throttled_usec 0
+cpu.weight.nice: 0
+cpu.uclamp.max: max
+cpu.max: max 100000
+cpu.uclamp.min: 0.00
+cpu.uclamp.max: max
+'''
There's a duplicate 'cpu.uclamp.max: max' line.
It's in a couple other patches too. (I wonder whether it failed in the
tests that compare the number of lines too.)
Really good find. Thanks.
The first uclamp max line was being matched up with the PSI
cpu.pressure line, and thus wasn't even being checked by the
test suite.
I'll take some time to think through a fix, but I'm leaning
toward doing a comparison on all lines (including PSI). There
are no processes in this cgroup, so PSI should always report
zeros.
Thanks!
Tom
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel