Hello Dave,
I have been working on a new command named lscgroup to
list cgroups' information and finished it recently.
This command displays all the cgroups' information or the
appointed cgroups' information relatively according to user's
input. The following shows the two types of output.
1.Display all the cgroups' information of the system.
crash>lscgroup
blkio:/
blkio:/libvirt
blkio:/libvirt/lxc
blkio:/libvirt/qemu
net_cls:/
...
...
cpuset:/
cpuset:/libvirt
cpuset:/libvirt/lxc
cpuset:/libvirt/qemu
2.Display the appointed cgroups' information.
crash> lscgroup memory:/ cpuset:/libvirt
memory:/
memory:/libvirt
memory:/libvirt/lxc
memory:/libvirt/qemu
cpuset:/libvirt
cpuset:/libvirt/lxc
cpuset:/libvirt/qemu
To see more details, please refer to the help information and the patch.
To build the module from the top-level crash-<version> directory, enter:
$ cp <path-to>/lscgroup.c extensions
$ make extensions