[Crash-utility] [PATCH] Add a new option -r to cgget

Zhang Xiaohe zhangxh at cn.fujitsu.com
Fri Dec 28 08:37:19 UTC 2012


Hello Dave,

This patch allows cgget to display one or some parameters of a
controller of cgroup and fix some bugs.
One will find it more efficient when he just focus on some
parameters instead of the whole controller.

Here are examples:
1.
crash> cgget -r cpuset.mems /
/:
cpuset.mems: 0

2.
crash> cgget -r memory.usage /
/:
memory.memsw.max_usage_in_bytes: 0
memory.memsw.usage_in_bytes: 1368694784
memory.max_usage_in_bytes: 0
memory.usage_in_bytes: 1368694784

To apply this patch, enter to crash-<version> directory and run
the commands as follows:
$ cp cgget.pacth ./
$ patch -p0 -i cgget.patch

For more information, please refer to the attachment.

Thanks.

-- 
Zhang Xiaohe
Regards
--------------------------------------------------
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8552
FAX: +86+25-83317685
MAIL: zhangxh at cn.fujitsu.com
--------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgget.patch
Type: text/x-patch
Size: 18460 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20121228/848078fd/attachment.bin>


More information about the Crash-utility mailing list