Re: [PATCH v1 1/7] selftests/vm: anon_cow: test COW handling of anonymous memory

From: David Hildenbrand
Date: Tue Oct 25 2022 - 03:08:00 EST


On 27.09.22 13:01, David Hildenbrand wrote:
Let's start adding tests for our COW handling of anonymous memory. We'll
focus on basic tests that we can achieve without additional libraries or
gup_test extensions.

We'll add THP and hugetlb tests separately.

Signed-off-by: David Hildenbrand <david@xxxxxxxxxx>
---

The following fixup on top:

diff --git a/tools/testing/selftests/vm/anon_cow.c b/tools/testing/selftests/vm/anon_cow.c
index 9d2b15c829e6..4613294af758 100644
--- a/tools/testing/selftests/vm/anon_cow.c
+++ b/tools/testing/selftests/vm/anon_cow.c
@@ -76,7 +76,7 @@ static int child_vmsplice_memcmp_fn(char *mem, size_t size,
.iov_base = mem,
.iov_len = size,
};
- size_t cur, total, transferred;
+ ssize_t cur, total, transferred;
char *old, *new;
int fds[2];
char buf;
@@ -172,7 +172,7 @@ static void do_test_vmsplice_in_parent(char *mem, size_t size,
.iov_base = mem,
.iov_len = size,
};
- size_t cur, total, transferred;
+ ssize_t cur, total, transferred;
struct comm_pipes comm_pipes;
char *old, *new;
int ret, fds[2];


--
Thanks,

David / dhildenb