• Home
  • History
  • Annotate
  • only in /external/ltp/testcases/kernel/controllers/cgroup_xattr/
NameDateSize

..11-Jun-20184 KiB

.gitignore11-Jun-201814

cgroup_xattr.c11-Jun-201810.4 KiB

Makefile11-Jun-2018905

README11-Jun-2018968

README

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