354ebb48db8e66a853a58379a4808d5dcd1ceac3 |
|
07-Dec-2012 |
Wanlong Gao <gaowanlong@cn.fujitsu.com> |
cleanup code indent Cleanup the code indent using: find . -name *.c -exec Lindent {} \; It's really a big change, but can fix almost all of the indent problem in C code, although we can't ensure all of the changes are right, but the error changes are really few. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/controllers/freezer/timed_forkbomb.c
|
ec6edca7aa42b6affd989ef91b5897f96795e40f |
|
18-Oct-2012 |
Chris Dearman <chris@mips.com> |
Add missing newline at end of file This is a scripted change done using the following command: find . -type d -name .git -prune -o \ -type f \! -name \*\~ \! -name .\#\* \ \! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \ xargs -0 sed -i -e '$a\' Signed-off-by: Chris Dearman <chris@mips.com>
/external/ltp/testcases/kernel/controllers/freezer/timed_forkbomb.c
|
2c28215423293e443469a07ae7011135d058b671 |
|
16-Dec-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Style and conformance changes. 1. Strip all leading space. 2. Move tst_exit() to main(). 3. Remove tst_exit() from cleanup(). 4. Remove cluebat comments. 5. Reduce some unnecessary whitespace. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/controllers/freezer/timed_forkbomb.c
|
5d8dc705df73c6e4056d8a05f98caa58096a3fe0 |
|
26-Feb-2009 |
subrata_modak <subrata_modak> |
Add Freezer Controller Testcases: These testcases cover the basic functionality of the kernel cgroup freezer controller described in the kernel's Documentation/cgroups/freezer-subsystem.txt file. Briefly: The freezer subsystem in the cgroup filesystem defines a file named freezer.state. Writing "FROZEN" to the state file will freeze all tasks in the cgroup or return with errno EBUSY if the group can't be frozen immediately (use /bin/echo if you wish to check exit codes). After a successful write of "FROZEN" writing "THAWED" will unfreeze the tasks in the cgroup. Reading will return the current state. Note that freezer.state doesn't exist in the root cgroup, which means the root cgroup is non-freezable. * Sample usage: $ mkdir /containers $ mount -t cgroup -ofreezer freezer /containers $ mkdir /containers/0 $ echo $some_pid > /containers/0/tasks $ cat /containers/0/tasks/freezer.state THAWED $ echo FROZEN > /containers/0/tasks/freezer.state <IO Error (busy)> $ cat /containers/0/tasks/freezer.state FREEZING $ sleep 0.2 $ echo FROZEN > /containers/0/tasks/freezer.state $ cat /containers/0/tasks/freezer.state FROZEN $ echo FROZEN > /containers/0/tasks/freezer.state $ cat /containers/0/tasks/freezer.state THAWED The bulk of the code is in libcgroup_freezer. Early tests cover the initialization used for the bulk of the tests. Each testcase is a brief shell script composed of your typical three phases: Initialization sourcing libcgroup_freezer mounting the cgroup filesystem making a sample cgroup making a sample process [optional] Test body Actions: freeze, thaw, move to (new) cgroups try to fork new processes signal sequences Assertions interleaved with the actions: cgroup/task existence cgroup/task state cgroup membership Cleanup The patch runs these tests when the other cgroup controller tests run but is otherwise independent of the infrastructure offered by those controller tests. Also, these tests may be carefully run by hand or via the run.sh script provided. Signed-off-by: Matt Helsley <matthltc@us.ibm.com>.
/external/ltp/testcases/kernel/controllers/freezer/timed_forkbomb.c
|