Re: [PATCH v6 12/12] selftests/sgx: Add scripts for EPC cgroup testing

From: Haitao Huang
Date: Wed Nov 15 2023 - 16:22:22 EST



+CG_ROOT=/sys/fs/cgroup
+if [ ! -d "/sys/fs/cgroup/misc" ]; then
+ echo "# cgroup V2 is in use."
+else
+ echo "# cgroup V1 is in use."
+ CG_ROOT=/sys/fs/cgroup/misc
+fi

Does the test need to support v1 cgroups?

I thought some distro may still only support V1. I do my most work on Ubuntu22.04 which by default is v1 so it's convenient for me to test. But not strong opinions.

Thanks
Haitao