selftests/damon: add a test for DAMON sysfs interface
authorSeongJae Park <sj@kernel.org>
Mon, 28 Feb 2022 23:02:02 +0000 (10:02 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:02:02 +0000 (10:02 +1100)
commitf63342f71284095233d71da544a7742c61e9fe00
treea1f83752fbb479ecddc2a2c10b4443f7f615f606
parent2481542c95e69c5892fb6c16f62556dead11333e
selftests/damon: add a test for DAMON sysfs interface

This commit adds a selftest for DAMON sysfs interface.  It tests the
functionality of 'nr' files and existence of files in each directory of
the hierarchy.

Link: https://lkml.kernel.org/r/20220228081314.5770-12-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Xin Hao <xhao@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
tools/testing/selftests/damon/Makefile
tools/testing/selftests/damon/sysfs.sh [new file with mode: 0644]