From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: Samir <samir@linux.ibm.com>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] controllers/cgroup: Skip regression test on cgroup v2 systems
Date: Mon, 16 Mar 2026 12:58:00 +0100 [thread overview]
Message-ID: <20260316115800.GA311158@pevik> (raw)
In-Reply-To: <abd-gW8X6XU0BWbe@redhat.com>
Hi Li, Samir,
...
> > + # This test is specific to cgroup v1
> > + # Check if system is using cgroup v2
> > + if [ -f /sys/fs/cgroup/cgroup.controllers ]; then
> This is typically right as the '/sys/fs/cgroup' is Cgroup default mount path,
> but if a tested system does not mount there, this won't work.
> Maybe we can go with the cgroup_lib.sh standard way for version check?
> cgroup_require "memory"
> cgroup_version=$(cgroup_get_version "memory")
> if [ "$cgroup_version" = "2" ]; then
> tst_res TCONF "memory controller mounted on cgroup v2 hierarchy, skipping test."
> return
> fi
+1
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-03-16 11:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-15 12:59 [LTP] [PATCH] controllers/cgroup: Skip regression test on cgroup v2 systems Samir
2026-03-16 3:52 ` Li Wang via ltp
2026-03-16 11:58 ` Petr Vorel [this message]
2026-03-17 7:09 ` Samir M
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260316115800.GA311158@pevik \
--to=pvorel@suse.cz \
--cc=liwang@redhat.com \
--cc=ltp@lists.linux.it \
--cc=samir@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox