All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support
@ 2022-12-19  7:16 Yang Xu
  2022-12-19  7:16 ` [LTP] [PATCH 2/2] memcg_lib.sh: Add fallback for RHEL9 Yang Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yang Xu @ 2022-12-19  7:16 UTC (permalink / raw)
  To: ltp

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 lib/tst_kvercmp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/tst_kvercmp.c b/lib/tst_kvercmp.c
index a01b4332b..552920fac 100644
--- a/lib/tst_kvercmp.c
+++ b/lib/tst_kvercmp.c
@@ -140,6 +140,9 @@ const char *tst_kvcmp_distname(const char *kver)
 	if (strstr(kver, ".el8"))
 		return "RHEL8";
 
+	if (strstr(kver, ".el9"))
+		return "RHEL9";
+
 	if (access(OSRELEASE_PATH, F_OK) != -1) {
 		SAFE_FILE_LINES_SCANF(NULL, OSRELEASE_PATH, "ID=%s", distname);
 
-- 
2.31.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [LTP] [PATCH 2/2] memcg_lib.sh: Add fallback for RHEL9
  2022-12-19  7:16 [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support Yang Xu
@ 2022-12-19  7:16 ` Yang Xu
  2022-12-20  4:54   ` Li Wang
  2022-12-20  4:45 ` [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support Li Wang
  2022-12-20  7:26 ` Jan Stancek
  2 siblings, 1 reply; 7+ messages in thread
From: Yang Xu @ 2022-12-19  7:16 UTC (permalink / raw)
  To: ltp

The kernel patch has been merged on RHEL9. 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-stream/9/baseos/x86_64/kernel-5.14.0-205.el9.x86_64.html
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 testcases/kernel/controllers/memcg/functional/memcg_lib.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
index 004946456..dbb61e6b1 100755
--- a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
+++ b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
@@ -403,7 +403,9 @@ 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
-if tst_kvcmp -lt "6.1"; then
+# 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
 	PAGESIZES=$(($PAGESIZE * 33))
 else
 	PAGESIZES=$(($PAGESIZE * 65))
-- 
2.31.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support
  2022-12-19  7:16 [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support Yang Xu
  2022-12-19  7:16 ` [LTP] [PATCH 2/2] memcg_lib.sh: Add fallback for RHEL9 Yang Xu
@ 2022-12-20  4:45 ` Li Wang
  2022-12-20  7:26 ` Jan Stancek
  2 siblings, 0 replies; 7+ messages in thread
From: Li Wang @ 2022-12-20  4:45 UTC (permalink / raw)
  To: Yang Xu; +Cc: ltp

On Mon, Dec 19, 2022 at 2:16 PM Yang Xu <xuyang2018.jy@fujitsu.com> wrote:

> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
>

Reviewed-by: Li Wang <liwang@redhat.com>

> ---
>  lib/tst_kvercmp.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/lib/tst_kvercmp.c b/lib/tst_kvercmp.c
> index a01b4332b..552920fac 100644
> --- a/lib/tst_kvercmp.c
> +++ b/lib/tst_kvercmp.c
> @@ -140,6 +140,9 @@ const char *tst_kvcmp_distname(const char *kver)
>         if (strstr(kver, ".el8"))
>                 return "RHEL8";
>
> +       if (strstr(kver, ".el9"))
> +               return "RHEL9";
> +
>         if (access(OSRELEASE_PATH, F_OK) != -1) {
>                 SAFE_FILE_LINES_SCANF(NULL, OSRELEASE_PATH, "ID=%s",
> distname);
>
> --
> 2.31.1
>
>

-- 
Regards,
Li Wang

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] [PATCH 2/2] memcg_lib.sh: Add fallback for RHEL9
  2022-12-19  7:16 ` [LTP] [PATCH 2/2] memcg_lib.sh: Add fallback for RHEL9 Yang Xu
@ 2022-12-20  4:54   ` Li Wang
  0 siblings, 0 replies; 7+ messages in thread
From: Li Wang @ 2022-12-20  4:54 UTC (permalink / raw)
  To: Yang Xu; +Cc: ltp

On Mon, Dec 19, 2022 at 2:16 PM Yang Xu <xuyang2018.jy@fujitsu.com> wrote:

> The kernel patch has been merged on RHEL9. 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-stream/9/baseos/x86_64/kernel-5.14.0-205.el9.x86_64.html
> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
>

Reviewed-by: Li Wang <liwang@redhat.com>


---
>  testcases/kernel/controllers/memcg/functional/memcg_lib.sh | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
> b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
> index 004946456..dbb61e6b1 100755
> --- a/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
> +++ b/testcases/kernel/controllers/memcg/functional/memcg_lib.sh
> @@ -403,7 +403,9 @@ 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
> -if tst_kvcmp -lt "6.1"; then
> +# 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
>         PAGESIZES=$(($PAGESIZE * 33))
>  else
>         PAGESIZES=$(($PAGESIZE * 65))
> --
> 2.31.1
>
>

-- 
Regards,
Li Wang

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support
  2022-12-19  7:16 [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support Yang Xu
  2022-12-19  7:16 ` [LTP] [PATCH 2/2] memcg_lib.sh: Add fallback for RHEL9 Yang Xu
  2022-12-20  4:45 ` [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support Li Wang
@ 2022-12-20  7:26 ` Jan Stancek
  2022-12-26  2:07   ` xuyang2018.jy
  2 siblings, 1 reply; 7+ messages in thread
From: Jan Stancek @ 2022-12-20  7:26 UTC (permalink / raw)
  To: Yang Xu; +Cc: ltp

On Mon, Dec 19, 2022 at 7:16 AM Yang Xu <xuyang2018.jy@fujitsu.com> wrote:
>
> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>

For both:
Acked-by: Jan Stancek <jstancek@redhat.com>

> ---
>  lib/tst_kvercmp.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/lib/tst_kvercmp.c b/lib/tst_kvercmp.c
> index a01b4332b..552920fac 100644
> --- a/lib/tst_kvercmp.c
> +++ b/lib/tst_kvercmp.c
> @@ -140,6 +140,9 @@ const char *tst_kvcmp_distname(const char *kver)
>         if (strstr(kver, ".el8"))
>                 return "RHEL8";
>
> +       if (strstr(kver, ".el9"))
> +               return "RHEL9";
> +
>         if (access(OSRELEASE_PATH, F_OK) != -1) {
>                 SAFE_FILE_LINES_SCANF(NULL, OSRELEASE_PATH, "ID=%s", distname);
>
> --
> 2.31.1
>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support
  2022-12-20  7:26 ` Jan Stancek
@ 2022-12-26  2:07   ` xuyang2018.jy
  2022-12-26  3:37     ` Li Wang
  0 siblings, 1 reply; 7+ messages in thread
From: xuyang2018.jy @ 2022-12-26  2:07 UTC (permalink / raw)
  To: Jan Stancek; +Cc: ltp

HI Jan, Li


Sorry for the late reply, I came back after one week covid2019 sick,

Thanks for your review, merged!

Best Regards
Yang Xu


> On Mon, Dec 19, 2022 at 7:16 AM Yang Xu <xuyang2018.jy@fujitsu.com> wrote:
>>
>> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
> 
> For both:
> Acked-by: Jan Stancek <jstancek@redhat.com>
> 
>> ---
>>   lib/tst_kvercmp.c | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/lib/tst_kvercmp.c b/lib/tst_kvercmp.c
>> index a01b4332b..552920fac 100644
>> --- a/lib/tst_kvercmp.c
>> +++ b/lib/tst_kvercmp.c
>> @@ -140,6 +140,9 @@ const char *tst_kvcmp_distname(const char *kver)
>>          if (strstr(kver, ".el8"))
>>                  return "RHEL8";
>>
>> +       if (strstr(kver, ".el9"))
>> +               return "RHEL9";
>> +
>>          if (access(OSRELEASE_PATH, F_OK) != -1) {
>>                  SAFE_FILE_LINES_SCANF(NULL, OSRELEASE_PATH, "ID=%s", distname);
>>
>> --
>> 2.31.1
>>
> 

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support
  2022-12-26  2:07   ` xuyang2018.jy
@ 2022-12-26  3:37     ` Li Wang
  0 siblings, 0 replies; 7+ messages in thread
From: Li Wang @ 2022-12-26  3:37 UTC (permalink / raw)
  To: xuyang2018.jy; +Cc: ltp

xuyang2018.jy@fujitsu.com <xuyang2018.jy@fujitsu.com> wrote:

HI Jan, Li
>
>
> Sorry for the late reply, I came back after one week covid2019 sick,
>

No worries, Xu.

This round of the epidemic looks serious, almost everyone (including myself)
around me gets infected COVID.

Take care and have a good rest!!

-- 
Regards,
Li Wang

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-12-26  3:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19  7:16 [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support Yang Xu
2022-12-19  7:16 ` [LTP] [PATCH 2/2] memcg_lib.sh: Add fallback for RHEL9 Yang Xu
2022-12-20  4:54   ` Li Wang
2022-12-20  4:45 ` [LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support Li Wang
2022-12-20  7:26 ` Jan Stancek
2022-12-26  2:07   ` xuyang2018.jy
2022-12-26  3:37     ` Li Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.