From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,sj@kernel.org,davidgow@davidgow.net,brendan.higgins@linux.dev,jasonangelov@ucla.edu,akpm@linux-foundation.org
Subject: [merged mm-stable] mm-damon-core-kunit-test-probe_hits-handling-at-region-split-and-merge.patch removed from -mm tree
Date: Tue, 06 Oct 2026 17:51:12 -0700 [thread overview]
Message-ID: <20261007005113.5D92F1F0089B@smtp.kernel.org> (raw)
The quilt patch titled
Subject: mm/damon/core-kunit: test probe_hits handling at region split and merge
has been removed from the -mm tree. Its filename was
mm-damon-core-kunit-test-probe_hits-handling-at-region-split-and-merge.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: Jason Angelov <jasonangelov@ucla.edu>
Subject: mm/damon/core-kunit: test probe_hits handling at region split and merge
Date: Mon, 31 Aug 2026 08:06:48 -0700
Patch series "mm/damon: add kunit tests for probe_hits handling and probe
params validation", v2.
DAMON recently introduced probes and probe weights. Add kunit tests for
the propagation of probe_hits at region split and merge, and the rejection
of invalid probe parameters by damon_valid_probe_params().
This patch (of 2):
damon_split_region_at() copies probe_hits[] and last_probe_hits[] to the
new split region.
damon_merge_two_regions() sets probe_hits[] to the size-weighted
average of the merged regions.
Extend damon_test_split_at() and damon_test_merge_two() tests to cover
those fields.
Link: https://lore.kernel.org/20260831150650.84829-1-sj@kernel.org
Link: https://lore.kernel.org/20260831150650.84829-2-sj@kernel.org
Signed-off-by: Jason Angelov <jasonangelov@ucla.edu>
Signed-off-by: SJ Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: SJ Park <sj@kernel.org>
Cc: David Gow <davidgow@davidgow.net>
Cc: Brendan Higgins <brendan.higgins@linux.dev>
---
mm/damon/tests/core-kunit.h | 7 +++++++
1 file changed, 7 insertions(+)
--- a/mm/damon/tests/core-kunit.h~mm-damon-core-kunit-test-probe_hits-handling-at-region-split-and-merge
+++ a/mm/damon/tests/core-kunit.h
@@ -152,6 +152,8 @@ static void damon_test_split_at(struct k
}
r->nr_accesses = 42;
r->last_nr_accesses = 15;
+ r->probe_hits[0] = 7;
+ r->last_probe_hits[0] = 3;
r->age = 10;
damon_add_region(r, t);
damon_split_region_at(t, r, 25);
@@ -168,6 +170,8 @@ static void damon_test_split_at(struct k
KUNIT_EXPECT_EQ(test, r->nr_accesses, r_new->nr_accesses);
KUNIT_EXPECT_EQ(test, r->last_nr_accesses, r_new->last_nr_accesses);
+ KUNIT_EXPECT_EQ(test, r->probe_hits[0], r_new->probe_hits[0]);
+ KUNIT_EXPECT_EQ(test, r->last_probe_hits[0], r_new->last_probe_hits[0]);
KUNIT_EXPECT_EQ(test, r->age, r_new->age);
out:
@@ -189,6 +193,7 @@ static void damon_test_merge_two(struct
kunit_skip(test, "region alloc fail");
}
r->nr_accesses = 10;
+ r->probe_hits[0] = 6;
r->age = 9;
damon_add_region(r, t);
r2 = damon_new_region(100, 300);
@@ -197,6 +202,7 @@ static void damon_test_merge_two(struct
kunit_skip(test, "second region alloc fail");
}
r2->nr_accesses = 20;
+ r2->probe_hits[0] = 14;
r2->age = 21;
damon_add_region(r2, t);
@@ -204,6 +210,7 @@ static void damon_test_merge_two(struct
KUNIT_EXPECT_EQ(test, r->ar.start, 0ul);
KUNIT_EXPECT_EQ(test, r->ar.end, 300ul);
KUNIT_EXPECT_EQ(test, r->nr_accesses, 16u);
+ KUNIT_EXPECT_EQ(test, r->probe_hits[0], 11);
KUNIT_EXPECT_EQ(test, r->age, 17u);
i = 0;
_
Patches currently in -mm which might be from jasonangelov@ucla.edu are
reply other threads:[~2026-10-07 0:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261007005113.5D92F1F0089B@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=brendan.higgins@linux.dev \
--cc=davidgow@davidgow.net \
--cc=jasonangelov@ucla.edu \
--cc=mm-commits@vger.kernel.org \
--cc=sj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.