From patchwork Thu Jan 28 02:19:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yafang Shao X-Patchwork-Id: 12051635 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 E7085C433DB for ; Thu, 28 Jan 2021 02:20:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6182064DCC for ; Thu, 28 Jan 2021 02:20:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6182064DCC 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 AD9EC6B0006; Wed, 27 Jan 2021 21:20:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A879D6B006C; Wed, 27 Jan 2021 21:20:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 94E686B006E; Wed, 27 Jan 2021 21:20:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0120.hostedemail.com [216.40.44.120]) by kanga.kvack.org (Postfix) with ESMTP id 7F7936B0006 for ; Wed, 27 Jan 2021 21:20:13 -0500 (EST) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 479A8363C for ; Thu, 28 Jan 2021 02:20:13 +0000 (UTC) X-FDA: 77753579106.22.frog28_1d0b1072759c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin22.hostedemail.com (Postfix) with ESMTP id 1F34618038918 for ; Thu, 28 Jan 2021 02:20:13 +0000 (UTC) X-HE-Tag: frog28_1d0b1072759c X-Filterd-Recvd-Size: 4060 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) by imf41.hostedemail.com (Postfix) with ESMTP for ; Thu, 28 Jan 2021 02:20:12 +0000 (UTC) Received: by mail-oi1-f180.google.com with SMTP id p5so4464098oif.7 for ; Wed, 27 Jan 2021 18:20: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=2sVYOiIouwZ8nIqPPf2kTH2Pf4brpoO3LuG88lxkqFk=; b=gwhoHQCQWcLqF42KqWs9nhPHSYr3Lu4OAgV1cMBqgX9MqPSj5686Pjnjn7neCVnDTw seSH/LDOwpw2XmjMArbFQhjzdHbS16kIWFoemEebyw7hTfx8MjViwrKna0E5GBiMmyhM YAsLtgmkH5agz1YvWFbaLZOMzH3xnCS1PIbv7HzN+Ww9cJALzHuvz+xUZXycJl8re0hA PWzJ5fzyHl2zKxK2BOi0g8Y01GdMD4+Ec6bSrSUoYStwQGJ/oqb1DfIusuWNjF3j+6dR SpSY+HjK9Jc6WnHCcbpJm/0RZ+B4g9L3uRwr7XmCtnJ1RmIX9N+Sg4lEpXujGBvqAm31 R2Kw== 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=2sVYOiIouwZ8nIqPPf2kTH2Pf4brpoO3LuG88lxkqFk=; b=b1hC28q11wTLvlNFh60zNbVG2Lcuap/6hiwVK3jPIhPrVbKLM7ApfMhfhAqFbL4j17 OoZzd3Zv9L/7L4u/0Jou6aG50rgNgmXm2EZjEczLjkpHYcl6BhfFFp+z/NA9zWJZNKnn wEx3zXTUy6JAQPC47gDZSaC96lkBi6S5P8CuLM6PiW0rCcDoy2TR6mKrp46bNSf2mM1v zmwsoRzpyXoDcmEUqI4wq0ChX5cn4MqHXJOjb1ldYaAnTZT283wvCYMv2Igzm/EALFjj jbaZw4yTOoDgDVA+JIDBdlsQqNQuG/cMMESHI1e1pMbGv+hotn14/zsGswFXT1uglN2P bPTw== X-Gm-Message-State: AOAM532p2QiqtcE+SmtYhl5Etq7+jDatskFdWCf2XaE6F/njRw1jVIUM YIZCaUCUsfYAQbeklmdY9DQ= X-Google-Smtp-Source: ABdhPJxJOpOsYWPIhDKouSi5iGTnafCAQd4pXGm9w0Z2+vZKcht1OwZjIsrD/h8pJU45bdtAet6Rcw== X-Received: by 2002:aca:d98a:: with SMTP id q132mr5191077oig.33.1611800412039; Wed, 27 Jan 2021 18:20:12 -0800 (PST) Received: from localhost.localdomain ([50.236.19.102]) by smtp.gmail.com with ESMTPSA id m10sm731246otp.19.2021.01.27.18.20.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2021 18:20:11 -0800 (PST) From: Yafang Shao To: david@redhat.com, vbabka@suse.cz, 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, Yafang Shao Subject: [PATCH 0/3] mm, printk: dump full information of page flags in pGp Date: Thu, 28 Jan 2021 10:19:44 +0800 Message-Id: <20210128021947.22877-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: Currently the pGp only shows the names of page flags, rather than the full information including section, node, zone, last cpupid and kasan tag. While it is not easy to parse these information manually because there're so many flavors. Let's interpret them in pGp as well. This patchset also includes some code cleanup in mm/slub.c. Below is the example of the output in mm/slub.c. - Before the patchset [ 6155.716018] INFO: Slab 0x000000004027dd4f objects=33 used=3 fp=0x000000008cd1579c flags=0x17ffffc0010200 - After the patchset [ 6315.235783] ERR: Slab 0x000000006d1133b9 objects=33 used=3 fp=0x000000006d0779d1 flags=0x17ffffc0010200(Node 0x0,Zone 0x2,Lastcpupid 0x1fffff,slab|head) Yafang Shao (3): mm, slub: use pGp to print page flags mm, slub: don't combine pr_err with INFO printk: dump full information of page flags in pGp lib/vsprintf.c | 42 +++++++++++++++++++++++++++++++++++++++++- mm/slub.c | 13 +++++++------ 2 files changed, 48 insertions(+), 7 deletions(-)