selftests: cgroup/memcontrol: add basic test for swap controls
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Tue, 15 May 2018 16:05:53 +0000 (19:05 +0300)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 30 May 2018 21:29:07 +0000 (15:29 -0600)
commit478b27844e9ee5660f4d4fa477e85514c51fc6d8
treef7a4572220ee251de9487e1129c8d3a813b7cc04
parent84092dbcf90176fcc258d74ad6ae8bb28d7df31a
selftests: cgroup/memcontrol: add basic test for swap controls

The new test verifies that memory.swap.max and memory.swap.current behave
as expected for simple allocation scenarios

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
tools/testing/selftests/cgroup/cgroup_util.c
tools/testing/selftests/cgroup/cgroup_util.h
tools/testing/selftests/cgroup/test_memcontrol.c