[LTP] [PATCH] memcg_lib.sh: Add fallback for RHEL8
Yang Xu
xuyang2018.jy@fujitsu.com
Fri Mar 10 06:54:55 CET 2023
As the same as RHEL9, this kernel patch has been merged on RHEL8. You can
see it in url[1], to avoid false report, so add a fallback for this.
[1]http://www.rpmfind.net/linux/RPM/centos/8-stream/baseos/x86_64/Packages/kernel-4.18.0-448.el8.x86_64.html
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
testcases/kernel/controllers/memcg/functional/memcg_lib.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
index dbb61e6b1..5efede9cf 100755
--- a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
+++ b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
@@ -404,8 +404,8 @@ fi
# Post 4.16 kernel updates stat in batch (> 32 pages) every time
# Post 6.1 kernel updates stat in batch (> 64 pages) every time
# 1813e51eece0ad6 ("memcg: increase MEMCG_CHARGE_BATCH to 64")
-# has been merged since 5.14.0-191.el9.
-if tst_kvcmp -lt "6.1 RHEL9:5.14.0-191" ; then
+# has been merged since 5.14.0-191.el9 and 4.18.0-438.el8.
+if tst_kvcmp -lt "6.1 RHEL9:5.14.0-191 RHEL8:4.18.0-438" ; then
PAGESIZES=$(($PAGESIZE * 33))
else
PAGESIZES=$(($PAGESIZE * 65))
--
2.39.1
More information about the ltp
mailing list