Skip to content

mm: mlock: elaborate mlock selftest case and fix one bug identified

[email protected] linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew 2 of 3 applied

Patches in v1 2 of 3 applied

#Subject and filesSizeRepliesApplied
1/3mm: mlock: correct a typo in count_mm_mlocked_page_nr() for caculate VMLOCKED pagesmm/mlock.c+4 -20 replies
2/3selftest: move seek_to_smaps_entry() out of mlock2-tests.ctools/testing/selftests/vm/mlock2-tests.c tools/testing/selftests/vm/mlock2.h+43 -420 repliesApplied
3/3selftests: expanding more mlock selftesttools/testing/selftests/vm/Makefile tools/testing/selftests/vm/mlock-intersect-test.c tools/testing/selftests/vm/mlock-random-test.c+295 -780 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] mm: mlock: elaborate mlock selftest case and fix one bug identified

From: Simon Guo <[email protected]>

The original mlock self tests are far from completed and David suggests to elaborate that.

The patch set expand mlock selftest case by randomly mlock/mlock2 on given memory region. It covers both under MLOCK rlimit and exceed MLOCK rlimit case.

During the testing, one bug was identified (introduced by my previous patch and sorry for that). Fix is included in this patch set.

Simon Guo (3):
mm: mlock: correct a typo in count_mm_mlocked_page_nr() for caculate
VMLOCKED pages
selftest: move seek_to_smaps_entry() out of mlock2-tests.c
selftests: expanding more mlock selftest

 mm/mlock.c                                        |   6 +-
 tools/testing/selftests/vm/Makefile               |   4 +-
 tools/testing/selftests/vm/mlock-intersect-test.c |  76 ------
 tools/testing/selftests/vm/mlock-random-test.c    | 293 ++++++++++++++++++++++
 tools/testing/selftests/vm/mlock2-tests.c         |  42 ----
 tools/testing/selftests/vm/mlock2.h               |  43 ++++
 6 files changed, 342 insertions(+), 122 deletions(-)
 delete mode 100644 tools/testing/selftests/vm/mlock-intersect-test.c
 create mode 100644 tools/testing/selftests/vm/mlock-random-test.c
Signature · 7 lines
1.8.3.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>