]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup Test: make-controller-use-generic-in-binary
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 15:13:58 +0000 (15:13 +0000)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 15:13:58 +0000 (15:13 +0000)
commitaed9030697e99f35b0c352f74bb0b7b8014d8ccb
tree759a2665636fa850919ba23483f2194b4f52fa62
parent484250af210a51f906503c876b9f92e2b2a31f35
libcgroup Test: make-controller-use-generic-in-binary

This patch makes the use of controllers available from script more generic.
All possible controllers in Linux kernel are to be kept as enum parameters
and a corresponding mapping is done in both, the script and binary. The
testcases are no more hardcoded with respect to controllers. The function
set_controller() need to be updated with respect to the controllers and
control file.
The challenges yet to be solved are:
(1)Choosing appropriate control file
(2)Choosing appropriate control value dynamicaly.

Thoughts are most welcome.

Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@259 4f4bb910-9a46-0410-90c8-c897d4f1cd53
tests/libcgrouptest.h
tests/libcgrouptest01.c
tests/runlibcgrouptest.sh