linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.31k stars 1.01k forks source link

tst_cgroup.c:802: TBROK: 'files' controller is unknown to LTP #1038

Closed LaberIScn closed 1 year ago

LaberIScn commented 1 year ago

tst_cgroup.c:802: TBROK: 'files' controller is unknown to LTP

Description:Controller module below test cases are getting failed

cgroup_regression_test 1 TINFO: timeout per run is 0h 5m 0s cgroup_regression_test 1 TPASS: no kernel bug was found cgroup_regression_test 2 TPASS: notify_on_release is inherited cgroup_regression_test 3 TPASS: no kernel bug was found cgroup_regression_test 4 TCONF: CONFIG_LOCKDEP is not enabled cgroup_regression_test 5 TINFO: The '/tmp/ltp-GL3tjU1tdu/LTP_cgroup_regression_test.WEyFQGfolQ/cgroup' is not mounted, skipping umount cgroup_regression_test 5 TPASS: no kernel bug was found cgroup_regression_test 6 TPASS: no kernel bug was found tst_cgroup.c:802: TBROK: 'files' controller is unknown to LTP cgroup_regression_test 7 TBROK: 'tst_cgctl require' exited

Config

LTP Version: 20230127

metan-ucw commented 1 year ago

I suppose that the problematic line is:

        subsys=`tail -n 1 /proc/cgroups | awk '{ print $1 }'`

Where we take last controller from /proc/cgroups. What is the content of the file on your system?

metan-ucw commented 1 year ago

Feel free to reopen with the requested information provided.