Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp875101pxb; Thu, 28 Jan 2021 02:26:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGRP4nc+qTSXAaAujR94MtOGX3nza1qEvDOeBVsMG0MnK+loj7ZWG2Rheo85fZARPVk7TE X-Received: by 2002:a17:906:6053:: with SMTP id p19mr10512642ejj.93.1611829614081; Thu, 28 Jan 2021 02:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611829614; cv=none; d=google.com; s=arc-20160816; b=TCrzvAKIBn7KrO70sm/31A36GfSzb+xObz36zQEGFqRZG1zLkjsFHV+b468ixdI/2v FVizpCdtZPW6EAdFRqiJYFacTES2ZpAUoXXFnoWnQLwUUTLUK83A63y65iaV0KcSrQOe ze0FcUK7dorwRiymETCGC8jMA6cfFoKdpC1YdLD6q1gUEY6/sJQmOsmoBy907dWrqRE9 cFfI7jhle2N1DpMjG58WpJ7F+YZUnB2eVEpoWSQCcf3uajRObZSaYJFX+akhh+hFrVqZ FwM5XY8ZHhjspbJjrWDUeyEREVcp8eBOLNJrjqLp9rp5i5fyfiKWAwSuIHjqI05BMuMs ZfHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=3Q6Yxyt3iCFtIe1KUX66AaaZT9Qz3TfhE+bWwmJlJ80=; b=x+ivFUFEwIYWMBpdiOUXRI32o6RQubJsZWSwCgDEkWizrtyteDCg0fpoXiHTDrhrfc Y48n3Ufl/Mrmb0+S6FfkKRIjsJyETn/PEFSEtIEhSI+IjlUDsmTJQrZfjiFe09pjFS98 9nXuEhUX9NTMr4tHWv0oZ3g0/uop881P8vI90BHsztR2A59ycpIeSxDoyITqjAYk6nte bt5WvPBap9UdssqsWc5Oayy+vYYTwUDF9faIfB9aHcixWx2g7/PItM+iHoy/PWCSY8lh q4hnQ2pkZi3lzNe7ExBqBmgflIqMa4jYgZiu7r1ZIItvc9PBiKmzpM710RyNMLFMrnqy 6uOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr3si2256537ejc.380.2021.01.28.02.26.29; Thu, 28 Jan 2021 02:26:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232462AbhA1K0B (ORCPT + 99 others); Thu, 28 Jan 2021 05:26:01 -0500 Received: from mx2.suse.de ([195.135.220.15]:49734 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232517AbhA1KYQ (ORCPT ); Thu, 28 Jan 2021 05:24:16 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CEF8AAE57; Thu, 28 Jan 2021 10:23:26 +0000 (UTC) Subject: Re: [PATCH 1/3] mm, slub: use pGp to print page flags To: Yafang Shao , david@redhat.com, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, pmladek@suse.com, rostedt@goodmis.org, sergey.senozhatsky@gmail.com, andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20210128021947.22877-1-laoar.shao@gmail.com> <20210128021947.22877-2-laoar.shao@gmail.com> From: Vlastimil Babka Message-ID: <1c64112b-ade8-682f-3963-b4040fffb52d@suse.cz> Date: Thu, 28 Jan 2021 11:23:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210128021947.22877-2-laoar.shao@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/21 3:19 AM, Yafang Shao wrote: > As pGp has been already introduced in printk, we'd better use it to make > the output human readable. > > Before this change, the output is, > [ 6155.716018] INFO: Slab 0x000000004027dd4f objects=33 used=3 fp=0x000000008cd1579c flags=0x17ffffc0010200 > > While after this change, the output is, > [ 8846.517809] INFO: Slab 0x00000000f42a2c60 objects=33 used=3 fp=0x0000000060d32ca8 flags=0x17ffffc0010200(slab|head) > > Reviewed-by: David Hildenbrand > Signed-off-by: Yafang Shao Reviewed-by: Vlastimil Babka > --- > mm/slub.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/mm/slub.c b/mm/slub.c > index 69742ab9a21d..4b9ab267afbc 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -641,8 +641,9 @@ void print_tracking(struct kmem_cache *s, void *object) > > static void print_page_info(struct page *page) > { > - pr_err("INFO: Slab 0x%p objects=%u used=%u fp=0x%p flags=0x%04lx\n", > - page, page->objects, page->inuse, page->freelist, page->flags); > + pr_err("INFO: Slab 0x%p objects=%u used=%u fp=0x%p flags=%#lx(%pGp)\n", > + page, page->objects, page->inuse, page->freelist, > + page->flags, &page->flags); > > } > >