Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp196291rwb; Wed, 9 Nov 2022 00:51:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf5KfyhM76TKdPvkGJ5AU7VZcXOtrCG1prkXWRgdBsOvt2Aty3XhyAcsML6ymOdIriB7eiTy X-Received: by 2002:a17:907:86a2:b0:7ae:6d34:d37b with SMTP id qa34-20020a17090786a200b007ae6d34d37bmr11789038ejc.750.1667983876793; Wed, 09 Nov 2022 00:51:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667983876; cv=none; d=google.com; s=arc-20160816; b=ICgLpaD3eX0NpNZsry61NTr7wgJzWhSc+iEPrk4jasRt3DScjcWpQFuS/ja4q2OyJp P3FmoQRvFJBHtNSa1nShth6MburbrAYFpgZBgQCDnTkDsyc8J72FNWZCX0GskoN4q6bw CVxnfXyiGlDtl3hiPk7N7wKMa4CabuEeJioiomQakqSvacdj82UrwWTkRVu7oSvqp0de QgKUzYjo3wOjSR+vaEd3wpr8TvS1Pk7nrEt0zd8J0I7xvZnk+/cmWUpnguQQ8qvTS3w1 OKe9+8uw+9Kln3HRIE8iSZQhp0NMznNvknDiVISY/gbkozgmBaOVkex88rb6AkSH741/ T7mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iZ41zAxuFab1VbpZbOqMuhHV5p0NUYaSK2sGuoKt9j4=; b=uqmAo7Ai4LuKyZUdfbCTfLjbXrsCZgk5b9GeHpyIFnTeNNPTJzN+vSeiuYMEW+mXVp 7ogaAq9gaZnlxG5eSg+GC9E8HG2bvRk5GAKv8dmO+ymHrWuCTyQQPInHLIPk5sXnjlXq 89Q22kPedxt4re/vtkRcH2r4LL+CH9P+xZgEU2yZCpGOXcP+RrtMdXBMgGY82AXP+wrL nP8uRz0HNb005EidBu42xU1UBcrMucCNiCIeAWmICpJ3I+flzcEc6ksWU93FaFJxE9Si u7MBR9z1XTMnuH1zsW2c0ApbUcFc6IAdjXKeKRZdvyVcLJPIQ4qpz0hHqrjxCGEzQhqG kSxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=A39M7ugj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw42-20020a1709066a2a00b007a66031d2dbsi16370986ejc.718.2022.11.09.00.50.50; Wed, 09 Nov 2022 00:51:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=A39M7ugj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229716AbiKIINU (ORCPT + 93 others); Wed, 9 Nov 2022 03:13:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbiKIINS (ORCPT ); Wed, 9 Nov 2022 03:13:18 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F7EE1902F; Wed, 9 Nov 2022 00:13:17 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id A64331F8C4; Wed, 9 Nov 2022 08:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1667981595; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iZ41zAxuFab1VbpZbOqMuhHV5p0NUYaSK2sGuoKt9j4=; b=A39M7ugjky4HJHQHpgupgCpSL4sIzdbSNnEklOL1SK2k8fgTBZ0UquiKGpX2rsgBpG5RKd fiWl+ZiIHC1FiY5c5gjE2ZFIKCevpdQ/RaPk3QCEmR1nQV6KTg/HAY0deZ95bnD5JxnHpP 9qW8VmwXRjZZy3Ymanng8AOAF0PFh8o= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id B9CAB2C141; Wed, 9 Nov 2022 08:13:13 +0000 (UTC) Date: Wed, 9 Nov 2022 09:13:11 +0100 From: Petr Mladek To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: Joe Perches , linux-mm@kvack.org, Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Vlastimil Babka , Naoya Horiguchi , Miaohe Lin , Matthew Wilcox , Minchan Kim , Mel Gorman , Andrea Arcangeli , Dan Williams , Hugh Dickins , Muchun Song , David Hildenbrand , Steven Rostedt , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC v2 3/3] mm, printk: introduce new format %pGt for page_type Message-ID: References: <20221106140355.294845-1-42.hyeyoo@gmail.com> <20221106140355.294845-4-42.hyeyoo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2022-11-09 15:14:05, Hyeonggon Yoo wrote: > On Sun, Nov 06, 2022 at 10:04:25AM -0800, Joe Perches wrote: > > On Sun, 2022-11-06 at 23:03 +0900, Hyeonggon Yoo wrote: > > > dump_page() uses %pGp format to print 'flags' field of struct page. > > > As some page flags (e.g. PG_buddy, see page-flags.h for more details) > > > are set in page_type field, introduce %pGt format which provides > > > human readable output of page_type. And use it in dump_page(). > > [] > > > diff --git a/lib/vsprintf.c b/lib/vsprintf.c > > [] > > > @@ -2056,6 +2056,28 @@ char *format_page_flags(char *buf, char *end, unsigned long flags) > > > return buf; > > > } > > > > > > +static > > Thanks for looking at this. > > > > > noinline_for_stack ? Honestly, I do not like much adding this without numbers. It has been added to some functions in vsprintf.c long time ago because it reduced the stack usage. But I think that it is a compiler and an architecture specific. And it is not clear if it would really help in this particular case. Feel free to omit it. Best Regards, Petr