1f08c3bdfSopenharmony_ciTEST SUITE: 2f08c3bdfSopenharmony_ci 3f08c3bdfSopenharmony_ciThe directory cgroup_xattr contains the tests related to extended 4f08c3bdfSopenharmony_ciattributes in cgroup filesystem. 5f08c3bdfSopenharmony_ci 6f08c3bdfSopenharmony_ciWARNING: 7f08c3bdfSopenharmony_ci 8f08c3bdfSopenharmony_ciThis test can cause a kernel panic due to a bug in kernels prior to 3.8. 9f08c3bdfSopenharmony_ciIt was fixed by kernel upstream commit 10f08c3bdfSopenharmony_ci712317ad97f41e738e1a19aa0a6392a78a84094e: 11f08c3bdfSopenharmony_ci 12f08c3bdfSopenharmony_ci"We should store file xattrs in struct cfent instead of struct cftype, 13f08c3bdfSopenharmony_cibecause cftype is a type while cfent is object instance of cftype." 14f08c3bdfSopenharmony_ci 15f08c3bdfSopenharmony_ciTESTS AIM: 16f08c3bdfSopenharmony_ci 17f08c3bdfSopenharmony_ciThe aim of the tests is to check the extended attributes in cgroup 18f08c3bdfSopenharmony_cifilesystem. This feature was added in Linux 3.7 to allow attaching runtime 19f08c3bdfSopenharmony_cimeta information to cgroups and everything they model (services, apps, vms) 20f08c3bdfSopenharmony_ciand can easily be shared among applications. 21f08c3bdfSopenharmony_ci 22f08c3bdfSopenharmony_ciTest mounts as many subsystems as possible (cpu, cpuset, ...) in the 23f08c3bdfSopenharmony_cicgroup tmp directory and creates one more hierarchy. Then sets extended 24f08c3bdfSopenharmony_ciattributes to all files in cgroup fs and subsequently reads the file's 25f08c3bdfSopenharmony_ciextended attributes back, checking values during the process. 26