selftests/damon: add a test for DAMOS quota goal
authorSeongJae Park <sj@kernel.org>
Thu, 2 May 2024 17:27:18 +0000 (10:27 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 11 May 2024 22:41:33 +0000 (15:41 -0700)
commitf1c07c0a1662b4f8aa7dae381013729aac6ba691
treed5b894a05a0c71f7120e072930a101c55815897a
parentd14d6b0e7da3c2d768418fc7e5ad65c359c35962
selftests/damon: add a test for DAMOS quota goal

Add a selftest for DAMOS quota goal.  It tests the feature by setting a
user_input metric based goal, change the current feedback, and check if
the effective quota size is increased and decreased as expected.

Link: https://lkml.kernel.org/r/20240502172718.74166-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/Makefile
tools/testing/selftests/damon/damos_quota_goal.py [new file with mode: 0644]