public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Question on .needs_cgroup_ctrls for cgroupv2
@ 2023-02-27 14:44 Wei Gao via ltp
  2023-02-27 14:58 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Wei Gao via ltp @ 2023-02-27 14:44 UTC (permalink / raw)
  To: rpalethorpe; +Cc: ltp

Hi Richard

How to setup correct test case for cgroupv2 check? I try to put following parameter but failed.

struct tst_test test = {
	...
        .needs_cgroup_ctrls = (const char *const []){ "unified", NULL },
        .needs_cgroup_ver = TST_CG_V2,
};


After some investigation i found cgroup_find_ctrl which called by tst_cg_require seems not implement 
how to check cgroupv2, the controllers has no "unified" memeber, should we add CGROUP_CTRL_MEMBER("unified", xxx)
into controllers?  Correct me if any misunderstanding.


void tst_cg_require(const char *const ctrl_name,
                        const struct tst_cg_opts *options)
{
        struct cgroup_ctrl *const ctrl = cgroup_find_ctrl(ctrl_name);


Thanks.
Regards
Gao Wei

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

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

end of thread, other threads:[~2023-02-27 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-27 14:44 [LTP] Question on .needs_cgroup_ctrls for cgroupv2 Wei Gao via ltp
2023-02-27 14:58 ` Cyril Hrubis
2023-02-27 15:17   ` Wei Gao via ltp
2023-02-27 15:28     ` Cyril Hrubis
2023-02-27 15:52       ` Richard Palethorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox