[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1473325970-11393-1-git-send-email-wei.guo.simon@gmail.com>
Date: Thu, 8 Sep 2016 17:12:47 +0800
From: wei.guo.simon@...il.com
To: linux-mm@...ck.org
Cc: Shuah Khan <shuah@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Vlastimil Babka <vbabka@...e.cz>,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
Michal Hocko <mhocko@...e.com>,
Eric B Munson <emunson@...mai.com>,
Simon Guo <wei.guo.simon@...il.com>,
Mel Gorman <mgorman@...hsingularity.net>,
Alexey Klimov <klimov.linux@...il.com>,
Andrea Arcangeli <aarcange@...hat.com>,
Thierry Reding <treding@...dia.com>,
Mike Kravetz <mike.kravetz@...cle.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org
Subject: [PATCH 0/3] mm: mlock: elaborate mlock selftest case and fix one bug identified
From: Simon Guo <wei.guo.simon@...il.com>
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
--
1.8.3.1
Powered by blists - more mailing lists