Hello! Pinging for review now that we are out of the quiet period.
Thanks,
Ujwal
: Ujwal Kundur
---
Changes since v3:
- more formatting fixes
Changes since v2:
- redo patch on mm-new branch
Changes since v1:
- indentation fixes
- squash into single patch to assist bisections
tools/testing/selftests/mm/uffd-common.c | 268 -
tools/testing/selftests/mm/uffd
> Sorry I don't have an opinion on which of these is the best (I can try
> to find some time to form an opionion on this later!), but:
>
> Fixing the flakiness sounds great, but I would suggest decoupling that
> from the refactoring. If it's practical, focus on removing the globals
> first, while l
> Sounds like that's your issue - for the kernel, tab is supposed to be
> as wide as 8 spaces, not 4.
That fixed it, thanks! I've gone through the diff and made sure there
are no longer any inconsistent indents.
> I'm afraid I'm too ignorant of this code to be able to suggest something
> good her
Thanks for the review and testing!
>> -static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy,
>> - unsigned long offset)
>> +static void retry_copy_page(uffd_global_test_opts_t *gopts, struct
>> uffdio_copy *uffdio_copy,
>> +
Refactor macros and non-composite global variable definitions into a
struct that is defined at the start of a test and is passed around
instead of relying on global vars.
Signed-off-by: Ujwal Kundur
---
Changes since v2:
- redo patch on mm-new branch
Changes since v1:
- indentation fixes
This patch refactors macros and non-composite global variable
definitions into a struct that is defined at the start of a test and is
passed around instead of relying on global vars.
Signed-off-by: Ujwal Kundur
---
Changes since v1:
- indentation fixes
- squash into single patch to assist
Thanks for the review and testing!
I'll push a V2 with the indentation fixes soon.
> this deletes the global vars before it deletes
> the references to them. That's gonna be a real pain for bisections,
> please can you restructure the series to prevent intervening build
> failures?
> (i.e. if I a
We use the refactored uffd_global_test_opts instead of global variables
for uffd-wp-mremap tests.
Signed-off-by: Ujwal Kundur
---
tools/testing/selftests/mm/uffd-wp-mremap.c | 23 +
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/tools/testing/selftests/mm
We use the refactored uffd_global_test_opts instead of global variables
for uffd-unit-tests.
Signed-off-by: Ujwal Kundur
---
tools/testing/selftests/mm/uffd-unit-tests.c | 523 ++-
1 file changed, 269 insertions(+), 254 deletions(-)
diff --git a/tools/testing/selftests/mm/uffd
We use the refactored uffd_global_test_opts struct instead of global
variables for uffd-stress tests.
Signed-off-by: Ujwal Kundur
---
tools/testing/selftests/mm/uffd-stress.c | 226 ---
1 file changed, 122 insertions(+), 104 deletions(-)
diff --git a/tools/testing/selftests
This patch deals with the common uffd routines, refactoring macros and
non-composite global variable definitions into a struct that is defined
at the start of a test and is passed around instead of relying on global
vars.
Signed-off-by: Ujwal Kundur
---
tools/testing/selftests/mm/uffd-common.c
frame, and we can more easily reason about the variable
mutations
Patch 1 needs to be applied first and can be followed by any of the
other patches.
I've ensured that the tests are passing locally (or atleast have the
same output as the code on master).
Ujwal Kundur (4):
selftests/mm
Fix misspellings flagged by codespell.
Signed-off-by: Ujwal Kundur
---
tools/testing/selftests/mm/uffd-common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/mm/uffd-common.c
b/tools/testing/selftests/mm/uffd-common.c
index 717539eddf98
14 matches
Mail list logo