From patchwork Fri Jan 15 06:13:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yafang Shao X-Patchwork-Id: 12021563 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=-8.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT 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 9A9E3C433DB for ; Fri, 15 Jan 2021 06:14:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 343B0239EF for ; Fri, 15 Jan 2021 06:14:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 343B0239EF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 392AB6B019D; Fri, 15 Jan 2021 01:14:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3452B6B019E; Fri, 15 Jan 2021 01:14:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 25B7B6B019F; Fri, 15 Jan 2021 01:14:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0149.hostedemail.com [216.40.44.149]) by kanga.kvack.org (Postfix) with ESMTP id 115236B019D for ; Fri, 15 Jan 2021 01:14:13 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id C759D181AEF3E for ; Fri, 15 Jan 2021 06:14:12 +0000 (UTC) X-FDA: 77706994344.20.sheet43_4210f222752d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id A1945180C07AB for ; Fri, 15 Jan 2021 06:14:12 +0000 (UTC) X-HE-Tag: sheet43_4210f222752d X-Filterd-Recvd-Size: 3663 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by imf41.hostedemail.com (Postfix) with ESMTP for ; Fri, 15 Jan 2021 06:14:12 +0000 (UTC) Received: by mail-oi1-f179.google.com with SMTP id p5so8539257oif.7 for ; Thu, 14 Jan 2021 22:14:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=l6LUGbjEfBq2rsus5NGbmtkuzlSnuGBAib3UKT24Yl8=; b=Wjee82CD9ai/FWNYLwrdWMMyX32LU0d1GHjwBYlxKtuiNxhc99CHK/zfimoG93PJx0 sPdXFxA/TsUa3/5tgLStkCkTBTeDjA5JiVfd4o0iDwAziTdQxAhJIQjVmvQLhs2TIJS9 Bn7utIpwCPSPmiJ9mgl2Tpu8QSdQfvoDigoHGTvdWynYHQR7HpAIM8gOv4bdOZJH9/H+ MusXony8qu+EFxSqv/lhP37XSdw+0+gZdwwWaNd/G9JNbWPOtMNR72xUmfZ5XKiTfveQ WD1RhnuKykPPVQyRGt/nblBcaK+M4iuF0isTc2VoSIv3WC6/PhVVVj2EY3wTsw+JVh4r 2kxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=l6LUGbjEfBq2rsus5NGbmtkuzlSnuGBAib3UKT24Yl8=; b=qFaIoy2A4ioWYufaxj5tcOVo0We5BhnHTyzaEQqHpuv19os+A8mYH3F2l1EAI4n7VA sVDw/R3R2ZQbrzgK+DadTm98B3aofvnXPqRlGjCi+cJEcGHAOmW4DVxZjQ32EQTUJL/Z jC33EfVkxQbbXojF92tonUifZoyyzDwMcTLxv905rm/IjqC6fk+riHB2xHGAVF3H5E5I O3UFpUb8ouIG8kdXRkO4wYapudvkUXhvHBqejzAx0Ezao4wdUPwNgCNdtJ8Y3k0GjHTY aLRsWlPel/FUVD6FCgO/S9ZNsEesTG9w4aH5exXi5+cK5QHHfz0HCGZPG3Z16+q1y3cE 5O9w== X-Gm-Message-State: AOAM531EToLmemIWo8VWX4MDfpc6vfZlXDHS4/WWuPIlPNa0Pl9+3grS grusaP4hFKyavGWsSjwOJ68= X-Google-Smtp-Source: ABdhPJwBc+kR1yXjMUYmmqw046/Yjw9Lv28d43cyCLC+tDLgN+WOe+xDENOQl4um91sk+T9gJFJaDA== X-Received: by 2002:aca:b06:: with SMTP id 6mr4713237oil.74.1610691251558; Thu, 14 Jan 2021 22:14:11 -0800 (PST) Received: from localhost.localdomain ([50.236.19.102]) by smtp.gmail.com with ESMTPSA id m7sm1586351oou.11.2021.01.14.22.14.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jan 2021 22:14:10 -0800 (PST) From: Yafang Shao To: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, willy@infradead.org, hannes@cmpxchg.org, mhocko@suse.com, david@redhat.com, osalvador@suse.de, linmiaohe@huawei.com, steven.price@arm.com, guro@fb.com, alexander.h.duyck@linux.intel.com, ying.huang@intel.com Cc: linux-mm@kvack.org, Yafang Shao Subject: [PATCH 0/2] mm: improve the output of print_page_info() Date: Fri, 15 Jan 2021 14:13:47 +0800 Message-Id: <20210115061349.67386-1-laoar.shao@gmail.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 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: Before that patchset, the output of print_page_info() is [ 6155.716018] INFO: Slab 0x000000004027dd4f objects=33 used=3 fp=0x000000008cd1579c flags=0x17ffffc0010200 While after it, the output is [ 8843.757770] INFO: Slab 0x00000000f0e98335 objects=33 used=3 fp=0x00000000b643c7d8 flags=0x10200(slab|head) The new one is more friendly and human readable. Yafang Shao (2): mm, slub: use pGp to print page flags mm: introduce PAGE_FLAGS() to make output of page flags better include/linux/page-flags.h | 2 ++ mm/slub.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-)