Message ID | 20190102085924.14145-2-urezki@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD7351399 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 2 Jan 2019 08:59:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD8EE2847E for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 2 Jan 2019 08:59:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C037D28496; Wed, 2 Jan 2019 08:59:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65E012847E for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 2 Jan 2019 08:59:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 970838E0011; Wed, 2 Jan 2019 03:59:43 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8AC208E0002; Wed, 2 Jan 2019 03:59:43 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 723E98E0011; Wed, 2 Jan 2019 03:59:43 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by kanga.kvack.org (Postfix) with ESMTP id EF6358E0002 for <linux-mm@kvack.org>; Wed, 2 Jan 2019 03:59:42 -0500 (EST) Received: by mail-lj1-f197.google.com with SMTP id t22-v6so8802174lji.14 for <linux-mm@kvack.org>; Wed, 02 Jan 2019 00:59:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=eD6vdBsepWppEQ05SRQmT4a1zoaGvTyTVp6rRdsMwk0=; b=Py7WZHnjEbQamSmrdKkxSBwlhBlv0xu1OW0MYfBMdiwzLZ5++fLV4Jq5fy2fxWaXOa sZAh7o354HHj8LcCg+mJPqa8IC+khlqdHGdwLiS+mRD5MI5zPH/6NxlsKnyOAcJKUkHJ 8mgC8Lo1l1jzMUX3gTgOpB/RUcQJf64ZnOjeGLOUllJLOQqkgN0L6uptqJ09pJR/8rf3 UZX/NEVHcG94AvQO64B/NL1U9iYxsE9At4PjTrpm7fXef+H0A8nP/ibC8qEqtkcEwCui NFfAXjMCUaQUR2+0xVIrmJY5c9946zg48gAZfSkLXmzH2u6693jSBy5LggXYZ8pka+a9 BImg== X-Gm-Message-State: AA+aEWZ+I707S9x3tEdREuQXn6/SIKls0yhETdIHG846h+iFn+954XzZ YCp0ArgwSoyzKiiJ789WcyE2Uz7JH314YIvK1NhNnFv9Grvt+DDIAnGwSFobPVLZxtfQojkUrxi jTk7UShU3FO1oJ0vnih90wo3IuYllxwaHI/Dvsjv10bOavGwd8nMXVksXnX+4qAF5gBBR9oeE1s 2rtAMm2ol76qPEctE2IwTy67pWDiM7HovrE7vGReM1vRgUQPm/a2EXf8ocZ2SakOklFWJIntmcb ZS5LCZqVjYYXbbgGkyqMHQybrTf+DJwZPeIl7Q4vqZ+w3jqyoVHDamJSbp6RZqdyAG83Bpk3DYW TnS+oujmRbFXFWre5bulDAHYxLK3pg4G1pkXaXrUPl1nxWQj/chmAyPfs2NTTSlpsjs+vNbohNI K X-Received: by 2002:a19:10a4:: with SMTP id 36mr20677363lfq.60.1546419582344; Wed, 02 Jan 2019 00:59:42 -0800 (PST) X-Received: by 2002:a19:10a4:: with SMTP id 36mr20677332lfq.60.1546419581013; Wed, 02 Jan 2019 00:59:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546419580; cv=none; d=google.com; s=arc-20160816; b=qtLE4xRJEe6RjzsY1jNczioc1EZzsjqP0YTonLfQ7mxdkoU68ibLxpeWain0ao/AQW V1rqesLM4zzzG6KLyj8NksGC8m4+2bOgjrVoKJxoI4lAHu//o0e8O5msmdqrnrWEXG1s kMXK9QAf+oomfMlt/h9ZRNwiRK76T3L4nq/e/Fy4ueCxiCI84AFm8726CxpNmbmvLvb9 QRTyfcZ938vnGzDo4hnR8QYDZOWedG18bSAPmNPXcbh668UQmFenIDr0K2woF6CNbqV4 j691QlVFb3Pq9uu8VrDKYynoa7Zx/EXmOE8hUZi2oxOwUdsU11lzO9GHjOzsB5kvx7n1 bptg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eD6vdBsepWppEQ05SRQmT4a1zoaGvTyTVp6rRdsMwk0=; b=iFeo1+uvxU0qNAZxAD7OnXQR5d0LRAAah5bHklFesvDNTpKxiYgnjbcwX3H60nH6AA n7Mdy0pwvBPEYlScHmk+36VHf2EKfDdUDUsveMpQUNu70b1ZbuYcTIqSzBoeN5a0/vpo VehEs2PVw3xmC9UeNkkNxkOm7t4sBIud5qL+sWRYSjwFUbp/aH7RXkmJTjRQlpYRCfI+ 5/FKgSM8Z0kG8qKVsYBPhvMuSAl4rOh2TI2LCYkeOa2iRuq2Azsa6awTh+PnfLyuZ94a TnKtceYnjqx4mJJnAgtVNW7Hhqve8gljyrG0GK0uiEly4CECPaXDGXDbt/ir4/8JK/oQ Ewjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LdX+L9oJ; spf=pass (google.com: domain of urezki@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=urezki@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id w6-v6sor29536042lji.26.2019.01.02.00.59.40 for <linux-mm@kvack.org> (Google Transport Security); Wed, 02 Jan 2019 00:59:40 -0800 (PST) Received-SPF: pass (google.com: domain of urezki@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LdX+L9oJ; spf=pass (google.com: domain of urezki@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=urezki@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eD6vdBsepWppEQ05SRQmT4a1zoaGvTyTVp6rRdsMwk0=; b=LdX+L9oJjaEbV8ti2QJpvLcZOUtKiQVck+e5aVjKDtYH2v0lAytvrjIX0tGf2Kcnqi KTRLGvbOaerIEhGNAONWpz42zy765uVTfz8fO16111mBmaoclKa8rjmUkGxNLvhRlR23 IG8mE7gbO7BbtNvkd15RuWvkAyx3p7p7z6+1Dv08LFkM4aSnH5dceEc6yl9dBbUck2jT L+gj2v7BNSwoHqy98s0rvWcYViVMznos7a78sPVgvMaYBqYycfvBcPGfgCCWdNesgZhk 6bsjI6wKFJOuVR6ZlVrhWEUwaR0Kew77fFAEwshjwg5vohuWP3bIEEwp9zu703n1sl2U 6wMA== X-Google-Smtp-Source: ALg8bN7hJI84B2jJc/Xzb8Y9ANMnx2S/0tA8wHEFVPx9/IPXJrgzwTuz57uq8dCl5bMOQNIzuO3MVw== X-Received: by 2002:a2e:3803:: with SMTP id f3-v6mr24073174lja.169.1546419580634; Wed, 02 Jan 2019 00:59:40 -0800 (PST) Received: from localhost.localdomain (mm-79-4-214-37.mogilev.dynamic.pppoe.byfly.by. [37.214.4.79]) by smtp.gmail.com with ESMTPSA id 10sm7489670ljr.4.2019.01.02.00.59.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 00:59:40 -0800 (PST) From: "Uladzislau Rezki (Sony)" <urezki@gmail.com> To: Michal Hocko <mhocko@suse.com>, Kees Cook <keescook@chromium.org>, Shuah Khan <shuah@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org Cc: LKML <linux-kernel@vger.kernel.org>, Matthew Wilcox <willy@infradead.org>, Oleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>, Thomas Gleixner <tglx@linutronix.de>, "Uladzislau Rezki (Sony)" <urezki@gmail.com> Subject: [RFC v3 1/3] vmalloc: export __vmalloc_node_range for CONFIG_TEST_VMALLOC_MODULE Date: Wed, 2 Jan 2019 09:59:22 +0100 Message-Id: <20190102085924.14145-2-urezki@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190102085924.14145-1-urezki@gmail.com> References: <20190102085924.14145-1-urezki@gmail.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
test driver to analyse vmalloc allocator
|
expand
|
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index cfea25be7754..1f24aecd1d7e 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1764,6 +1764,15 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align, return NULL; } +/* + * This is only for performance analysis of vmalloc and stress purpose. + * It is required by vmalloc test module, therefore do not use it other + * than that. + */ +#ifdef CONFIG_TEST_VMALLOC_MODULE +EXPORT_SYMBOL_GPL(__vmalloc_node_range); +#endif + /** * __vmalloc_node - allocate virtually contiguous memory * @size: allocation size
Export __vmaloc_node_range() function if CONFIG_TEST_VMALLOC_MODULE is enabled. Some test cases in vmalloc test suite module require and make use of that function. Please note, that it is not supposed to be used for other purposes. We need it only for performance analysis, stressing and stability check of vmalloc allocator. Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com> --- mm/vmalloc.c | 9 +++++++++ 1 file changed, 9 insertions(+)