Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3870242pxb; Mon, 1 Feb 2021 06:49:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3tgcFmRgKh3/1rGjJ0wQTdtKlJpDWMEplmoG4QzuJWe03iD1hXdHCPErfl6sLuO06HDBm X-Received: by 2002:aa7:d64b:: with SMTP id v11mr18393294edr.16.1612190983214; Mon, 01 Feb 2021 06:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612190983; cv=none; d=google.com; s=arc-20160816; b=IAq1D/vq3jCdS6Hfiw0+1QK9Y7eImPjtBO6IFvUbtILYFaZnkxQcxwo9k3gB6jySpF txRRWA0vAYDkvJZEOg9U0XfAPvzY70fzxlxzgHXvL7lRQFWFM6/WbEXkWSvrSSlG4LCt 8dLdpKXzxQmtXFPz6yvH72oNdpEkkYFws3v4Nhi6uiyKN4OUIKyXhRs/2r86VPOR9AvN 7jqGRb0jPJjTyuwGyv6f8B2kuWmgFUAcYW9ENO1k0KpPecw2ZSC7U7TjnkBvr7mieLyk lrNbz7N0nIzz0dND8dfIBJKWjuWqKtbcymyApLHwLWsP8EvFAbMsovIMKTWCB6iYO9BF IYCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=I4D16KIn4mdPhfH6zQNKK7p0fTmhOo1v0cmsmsfFxGA=; b=AinjAZ0w/aMc0aWT91Psp/m5DnAXjOSwF/eT0LLEsEShMLcEfxo0pEDw4rgm87Xcxx ZWf3P7EEtHR6vESVGbHiopyQp6jf8HPx4lEOmiVdaOre7xY50ZZxItLlZdOmeD3mlZi7 aEWNi2QwdZP7stlqXCn6uBeVyUeSuMsPq+mgx64Xj1CUDT9A5++0syZHnp6rw2I7PHYe Izmaz9jXzFP/MDOYK+rVTNz4JrlpfiDcHaT0vJNw9Jqrf0nhUSh/K2++WJmt9xUNWcJQ Z/O/BMLWo+YLWxMMzBeGsxd7BhHLyN7oERoZHntq+72EraS9LG1lpXOCcU7Jik/jCW4d Z1mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ug+16pnx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o23si2331742ejc.395.2021.02.01.06.49.17; Mon, 01 Feb 2021 06:49:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ug+16pnx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231657AbhBAOrL (ORCPT + 99 others); Mon, 1 Feb 2021 09:47:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231494AbhBAOp5 (ORCPT ); Mon, 1 Feb 2021 09:45:57 -0500 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F88EC0613ED for ; Mon, 1 Feb 2021 06:45:17 -0800 (PST) Received: by mail-il1-x133.google.com with SMTP id q5so15753092ilc.10 for ; Mon, 01 Feb 2021 06:45:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I4D16KIn4mdPhfH6zQNKK7p0fTmhOo1v0cmsmsfFxGA=; b=ug+16pnxrHl306VQCEZxGDt73DrCGl7Zi3egCSW52HPzvQ/Edp9CyOFir9ng16GLUm Yyhrt3Z13jo1fBi6m+vJiQ9GJ6h4bbFEvTw+RdSCZEPgXBTIeTki/oJ7DbbJSqEOI3SM Za5k4fAaBsVrzR3jmWK5zflFA3IF7LZ9ijBB++Wp+AcvobpOId8znN9+/3Xjz9qG0xZU aPAM+USuXjkHZAl2peQIwb6cpUGApEebiM6kCBobWsBBXhwcWHYYdZbveDX8KlDSA7RM DPqGBt+MZMwFBGGbjeMn4mbaSkm61rMebEK/VRw2aHWEZDILkLzr8XJpjhAMCZnae98E WoAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I4D16KIn4mdPhfH6zQNKK7p0fTmhOo1v0cmsmsfFxGA=; b=bMk42kLEyYNLjf3+KYFpOyx7DazBowp3M70R97X6C8RtjB5folc4HMYGWTbenGwN43 XVUQpdFa1RBKw0EKi70hkuAdEi5mjV2kVWOI9xDOwFWhD7BI7NVPzBDFVWI5gvAzsTvC /4Xh885ZhZs7Ns/UM+WJ4FKnS38oei05vzqpAw/aNd8fEdfPigtRjb4w6IJ1ux87XK1d l8a6xUYcAEryiBbZkmaHp2gVmuozgoL5XwqObOtQEVrUH/B3Wi9MNapCEwnBvl9VYmq3 vuLdYsGzG+sEhCiUOeJASAj4/M4PebC3AX9v78g7M9rPt4X5wakJ4gBIPd2jwFC8udZH zJ4w== X-Gm-Message-State: AOAM532afK3vlEPpHsrm3RQKESOV1DNDRDgohYECSUdGSOtx18JjWwZs 8CE0XNEPxbSt8WcJhnXQ5H96JxHAkoyAjxr7G/w= X-Received: by 2002:a92:d3c7:: with SMTP id c7mr12632482ilh.137.1612190716727; Mon, 01 Feb 2021 06:45:16 -0800 (PST) MIME-Version: 1.0 References: <20210201115610.87808-1-laoar.shao@gmail.com> <20210201115610.87808-4-laoar.shao@gmail.com> <20210201141505.GR308988@casper.infradead.org> In-Reply-To: <20210201141505.GR308988@casper.infradead.org> From: Yafang Shao Date: Mon, 1 Feb 2021 22:44:41 +0800 Message-ID: Subject: Re: [PATCH v2 3/3] vsprintf: dump full information of page flags in pGp To: Matthew Wilcox Cc: Andy Shevchenko , David Hildenbrand , Vlastimil Babka , Miaohe Lin , Christoph Lameter , penberg@kernel.org, David Rientjes , iamjoonsoo.kim@lge.com, Andrew Morton , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Rasmus Villemoes , Linux MM , LKML , Joe Perches Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 1, 2021 at 10:15 PM Matthew Wilcox wrote: > > On Mon, Feb 01, 2021 at 07:56:10PM +0800, Yafang Shao wrote: > > - Before the patch, > > [ 6343.396602] Slab 0x000000004382e02b objects=33 used=3 fp=0x000000009ae06ffc flags=0x17ffffc0010200(slab|head) > > > > - After the patch, > > [ 6871.296131] Slab 0x00000000c0e19a37 objects=33 used=3 fp=0x00000000c4902159 flags=0x17ffffc0010200(Node 0,Zone 2,Lastcpupid 0x1fffff,slab|head) > > I would suggest it will be easier to parse as: > > flags=0x17ffffc0010200(slab|head|node=0|zone=2|lastcpupid=0x1fffff) > > That should alleviate the concerns about debugfs format change -- we've > never guaranteed that flag names won't change, and they now look enough > like flags that parsers shouldn't fall over them. Good suggestion! I will do it as you suggested in the next version. -- Thanks Yafang