Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759447AbbFBP0U (ORCPT ); Tue, 2 Jun 2015 11:26:20 -0400 Received: from lists.s-osg.org ([54.187.51.154]:49127 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759226AbbFBP0J (ORCPT ); Tue, 2 Jun 2015 11:26:09 -0400 Message-ID: <556DCB05.1010102@osg.samsung.com> Date: Tue, 02 Jun 2015 09:25:57 -0600 From: Shuah Khan Organization: Samsung Open Source Group User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Eric B Munson , Andrew Morton CC: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Shuah Khan Subject: Re: [RESEND PATCH 3/3] Add tests for lock on fault References: <1432908808-31150-1-git-send-email-emunson@akamai.com> <1432908808-31150-4-git-send-email-emunson@akamai.com> In-Reply-To: <1432908808-31150-4-git-send-email-emunson@akamai.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2239 Lines: 63 On 05/29/2015 08:13 AM, Eric B Munson wrote: > Test the mmap() flag, the mlockall() flag, and ensure that mlock limits > are respected. Note that the limit test needs to be run a normal user. > > Signed-off-by: Eric B Munson > Cc: Shuah Khan > Cc: linux-mm@kvack.org > Cc: linux-kernel@vger.kernel.org > Cc: linux-api@vger.kernel.org > --- > tools/testing/selftests/vm/Makefile | 8 +- > tools/testing/selftests/vm/lock-on-fault.c | 145 ++++++++++++++++++++++++++++ > tools/testing/selftests/vm/on-fault-limit.c | 47 +++++++++ > tools/testing/selftests/vm/run_vmtests | 23 +++++ > 4 files changed, 222 insertions(+), 1 deletion(-) > create mode 100644 tools/testing/selftests/vm/lock-on-fault.c > create mode 100644 tools/testing/selftests/vm/on-fault-limit.c > > diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile > index a5ce953..32f3d20 100644 > --- a/tools/testing/selftests/vm/Makefile > +++ b/tools/testing/selftests/vm/Makefile > @@ -1,7 +1,13 @@ > # Makefile for vm selftests > > CFLAGS = -Wall > -BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest > +BINARIES = hugepage-mmap > +BINARIES += hugepage-shm > +BINARIES += hugetlbfstest > +BINARIES += lock-on-fault > +BINARIES += map_hugetlb > +BINARIES += on-fault-limit > +BINARIES += thuge-gen > BINARIES += transhuge-stress > > all: $(BINARIES) > diff --git a/tools/testing/selftests/vm/lock-on-fault.c b/tools/testing/selftests/vm/lock-on-fault.c > new file mode 100644 > index 0000000..e6a9688 Hi Eric, Could you please make sure make kselftest run from kernel main Makefile works and tools/testing/selftests/kselftest_install.sh works. For now you have to be in tools/testing/selftests to run kselftest_install.sh thanks, -- Shuah -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh@osg.samsung.com | (970) 217-8978 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/