[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181002110524.ckgrlmx5k54rvawt@black.fi.intel.com>
Date: Tue, 2 Oct 2018 14:05:24 +0300
From: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
To: Keith Busch <keith.busch@...el.com>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Dave Hansen <dave.hansen@...el.com>,
Dan Williams <dan.j.williams@...el.com>
Subject: Re: [PATCHv3 5/6] tools/gup_benchmark: Add parameter for hugetlb
On Fri, Sep 21, 2018 at 10:39:55PM +0000, Keith Busch wrote:
-ENOMSG
> Cc: Kirill Shutemov <kirill.shutemov@...ux.intel.com>
> Cc: Dave Hansen <dave.hansen@...el.com>
> Cc: Dan Williams <dan.j.williams@...el.com>
> Signed-off-by: Keith Busch <keith.busch@...el.com>
> ---
> tools/testing/selftests/vm/gup_benchmark.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/vm/gup_benchmark.c b/tools/testing/selftests/vm/gup_benchmark.c
> index f2c99e2436f8..5d96e2b3d2f1 100644
> --- a/tools/testing/selftests/vm/gup_benchmark.c
> +++ b/tools/testing/selftests/vm/gup_benchmark.c
> @@ -38,7 +38,7 @@ int main(int argc, char **argv)
> char *file = NULL;
> char *p;
>
> - while ((opt = getopt(argc, argv, "m:r:n:f:tTLU")) != -1) {
> + while ((opt = getopt(argc, argv, "m:r:n:f:tTLUH")) != -1) {
> switch (opt) {
> case 'm':
> size = atoi(optarg) * MB;
> @@ -64,6 +64,9 @@ int main(int argc, char **argv)
> case 'w':
> write = 1;
> break;
> + case 'H':
> + flags |= MAP_HUGETLB;
> + break;
> case 'f':
> file = optarg;
> flags &= ~(MAP_PRIVATE | MAP_ANONYMOUS);
> --
> 2.14.4
>
--
Kirill A. Shutemov
Powered by blists - more mailing lists