Skip to contentSkip to conversation

selftests-damon-wss_estimation-deduplicate-failed-samples-output.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 31

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: selftests/damon/wss_estimation: deduplicate failed samples output
has been removed from the -mm tree. Its filename was
selftests-damon-wss_estimation-deduplicate-failed-samples-output.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: selftests/damon/wss_estimation: deduplicate failed samples output
Date: Fri, 16 Jan 2026 18:07:28 -0800

When the test fails, it shows whole sampled working set size measurements. The purpose is showing the distribution of the measured values, to let the tester know if it was just intermittent failure. Multiple same values on the output are therefore unnecessary. It was not a big deal since the test was failing only once in the past. But the test can now fail multiple times with increased working set size, until it passes or the working set size reaches a limit. Hence the noisy output can be quite long and annoying. Print only the deduplicated distribution information.

---

 tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_wss_estimation.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_wss_estimation.py renamed from tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_wss_estimation.py~selftests-damon-wss_estimation-deduplicate-failed-samples-output +5 -1
@@ -53,7 +53,11 @@ def pass_wss_estimation(sz_region):
             print('the error rate is not acceptable (> %f)' %
                     acceptable_error_rate)
             print('samples are as below')
-            print('\n'.join(['%d' % wss for wss in wss_collected]))
+            for idx, wss in enumerate(wss_collected):
+                if idx < len(wss_collected) - 1 and \
+                        wss_collected[idx + 1] == wss:
+                    continue
+                print('%d/%d: %d' % (idx, len(wss_collected), wss))
             return False
     return True
 

_

Patches currently in -mm which might be from [email protected] are