summaryrefslogtreecommitdiffstats
path: root/tests/libcgrouptest.h
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:13:58 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:13:58 +0000
commitaed9030697e99f35b0c352f74bb0b7b8014d8ccb (patch)
tree759a2665636fa850919ba23483f2194b4f52fa62 /tests/libcgrouptest.h
parent484250af210a51f906503c876b9f92e2b2a31f35 (diff)
downloadlibcg-aed9030697e99f35b0c352f74bb0b7b8014d8ccb.tar.gz
libcg-aed9030697e99f35b0c352f74bb0b7b8014d8ccb.tar.xz
libcg-aed9030697e99f35b0c352f74bb0b7b8014d8ccb.zip
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
Diffstat (limited to 'tests/libcgrouptest.h')
-rw-r--r--tests/libcgrouptest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h
index 20c1f4d..644e176 100644
--- a/tests/libcgrouptest.h
+++ b/tests/libcgrouptest.h
@@ -44,6 +44,7 @@ enum cgroup_mount_t {
enum controller_t {
MEMORY,
CPU,
+ CPUSET,
/* Add new controllers here */
};