[Crash-utility] [Crash] [PATCH] add a new command: lscgroup

俞永明 yuym.fnst at cn.fujitsu.com
Fri Nov 9 07:06:24 UTC 2012


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




-------------- next part --------------
A non-text attachment was scrubbed...
Name: lscgroup.c
Type: text/x-csrc
Size: 15697 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20121109/29e7f46a/attachment.bin>


More information about the Crash-utility mailing list