selftests: cgroup/memcontrol: add basic test for socket accounting
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Tue, 22 May 2018 20:06:05 +0000 (23:06 +0300)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Thu, 31 May 2018 03:28:33 +0000 (21:28 -0600)
commit5f8f019380b86f4e84445c2f2f8533de9c91fbe6
tree12fcd3da46bfc1db2c78262b5eccbd9fbc511d66
parentd0103c5cb635f7ea3bf148d37bcf392fd228f0a5
selftests: cgroup/memcontrol: add basic test for socket accounting

The test verifies that when there is active TCP connection, the
memory.stat.sock and memory.current values are close.

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