From patchwork Wed Dec 16 04:43:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 11976423 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23AA9C4361B for ; Wed, 16 Dec 2020 04:43:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D031223124 for ; Wed, 16 Dec 2020 04:43:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D031223124 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 67E8C6B0036; Tue, 15 Dec 2020 23:43:03 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 62E196B0072; Tue, 15 Dec 2020 23:43:03 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 544746B0073; Tue, 15 Dec 2020 23:43:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0051.hostedemail.com [216.40.44.51]) by kanga.kvack.org (Postfix) with ESMTP id 3C4E56B0036 for ; Tue, 15 Dec 2020 23:43:03 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id F360F824999B for ; Wed, 16 Dec 2020 04:43:02 +0000 (UTC) X-FDA: 77597900604.05.salt50_0d13cee27429 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id DC8FA180013C2 for ; Wed, 16 Dec 2020 04:43:02 +0000 (UTC) X-HE-Tag: salt50_0d13cee27429 X-Filterd-Recvd-Size: 2429 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Wed, 16 Dec 2020 04:43:02 +0000 (UTC) Date: Tue, 15 Dec 2020 20:43:01 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1608093781; bh=SDHQ4VxXgj7vY8YK66GjM4M3lHyA0v//SqpJpO7g6+w=; h=From:To:Subject:In-Reply-To:From; b=yKQq11MwwhFjFW/+bEXAPH67SPr9Z7pnGefRqxdhaN/iMSdJ8qX84lvSql3yaa3MM sKhE3OAzAGrdx7Qcmsd25+fq2T1rp2jHgN/+AdHDIzVRG7Zl5Xmvi2wjjh7gLG7Y/b aW4eSALB8iaFwKwGaxHZFiFzRlwugw3ZiQ+/y1oE= From: Andrew Morton To: akpm@linux-foundation.org, geert@linux-m68k.org, linux-mm@kvack.org, mm-commits@vger.kernel.org, rppt@kernel.org, torvalds@linux-foundation.org, willy@infradead.org Subject: [patch 13/95] lib/test_free_pages.c: add basic progress indicators Message-ID: <20201216044301.ZYg810UdD%akpm@linux-foundation.org> In-Reply-To: <20201215204156.f05ec694b907845bcfab5c44@linux-foundation.org> User-Agent: s-nail v14.8.16 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: From: Geert Uytterhoeven Subject: lib/test_free_pages.c: add basic progress indicators The test module to check that free_pages() does not leak memory does not provide any feedback whatsoever its state or progress, but may take some time on slow machines. Add the printing of messages upon starting each phase of the test, and upon completion. Link: https://lkml.kernel.org/r/20201018140445.20972-1-geert@linux-m68k.org Signed-off-by: Geert Uytterhoeven Cc: Mike Rapoport Cc: Matthew Wilcox Signed-off-by: Andrew Morton --- lib/test_free_pages.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/lib/test_free_pages.c~lib-test_free_pages-add-basic-progress-indicators +++ a/lib/test_free_pages.c @@ -5,6 +5,8 @@ * Author: Matthew Wilcox */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include @@ -26,8 +28,11 @@ static void test_free_pages(gfp_t gfp) static int m_in(void) { + pr_info("Testing with GFP_KERNEL\n"); test_free_pages(GFP_KERNEL); + pr_info("Testing with GFP_KERNEL | __GFP_COMP\n"); test_free_pages(GFP_KERNEL | __GFP_COMP); + pr_info("Test completed\n"); return 0; }