From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 0592FC433DF for ; Thu, 9 Jul 2020 20:21:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B738B20720 for ; Thu, 9 Jul 2020 20:21:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Xezee9dt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B738B20720 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 52EE28D0003; Thu, 9 Jul 2020 16:21:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 493188D0002; Thu, 9 Jul 2020 16:21:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 09A408D0003; Thu, 9 Jul 2020 16:21:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0250.hostedemail.com [216.40.44.250]) by kanga.kvack.org (Postfix) with ESMTP id D2B278D0002 for ; Thu, 9 Jul 2020 16:21:31 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 8E947180AD801 for ; Thu, 9 Jul 2020 20:21:31 +0000 (UTC) X-FDA: 77019657582.19.touch72_1e1161426ec8 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id 66DBE1ACEBC for ; Thu, 9 Jul 2020 20:21:31 +0000 (UTC) X-HE-Tag: touch72_1e1161426ec8 X-Filterd-Recvd-Size: 3243 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf07.hostedemail.com (Postfix) with ESMTP for ; Thu, 9 Jul 2020 20:21:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=ww+rnqB/vpS2GrhljyzHyO8qplSAZMClIi8PyXwq+10=; b=Xezee9dt4s/O6CMyUDLZNCOAcZ N6kfawGQ+fUKKuivDyNi2NGujKbHmJkxAN/1xAIS6HRYOEx6NyxvUTvQADwslghnI0Yw3GEn5W53K BgtfypjozqH/g0HqWk7J57ezNSiE8d6ebM9IvQx0JGnkFU4M8T9lsHgw1kiu9w6EsOx5QmNf/qzr2 CqpOj+sIhFpt9fRExNcMoFJPFfxPJW89VaSfQkyBSqG50OP7JNY+GmxLSPb6ZNoKyIzkeS64BkQUN i8I5WVB9vgy1xQXMtdsbM7be3ItTrcGUpO6c/XkYbLKhn2j0OoanF2HySLsCLMwufQPgx+OqqlnKZ ELGxurFQ==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtd2t-0001v1-Ac; Thu, 09 Jul 2020 20:21:27 +0000 From: "Matthew Wilcox (Oracle)" To: linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" , Andrew Morton , Vlastimil Babka , John Hubbard , "Kirill A. Shutemov" , William Kucharski , Mike Rapoport Subject: [PATCH v2 6/6] mm: Print hashed address of struct page Date: Thu, 9 Jul 2020 21:21:17 +0100 Message-Id: <20200709202117.7216-7-willy@infradead.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200709202117.7216-1-willy@infradead.org> References: <20200709202117.7216-1-willy@infradead.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 66DBE1ACEBC X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 Content-Transfer-Encoding: quoted-printable 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: The actual address of the struct page isn't particularly helpful, while the hashed address helps match with other messages elsewhere. Add the PFN that the page refers to in order to help diagnose problems where the page is improperly aligned for the purpose. Signed-off-by: Matthew Wilcox (Oracle) --- mm/debug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/debug.c b/mm/debug.c index 60347d0d7609..033f04ffc398 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -89,17 +89,17 @@ void __dump_page(struct page *page, const char *reaso= n) */ mapcount =3D PageSlab(head) ? 0 : page_mapcount(page); =20 - pr_warn("page:%px refcount:%d mapcount:%d mapping:%p index:%#lx\n", + pr_warn("page:%p refcount:%d mapcount:%d mapping:%p index:%#lx pfn:%#lx= \n", page, page_ref_count(head), mapcount, mapping, - page_to_pgoff(page)); + page_to_pgoff(page), page_to_pfn(page)); if (compound) { if (hpage_pincount_available(page)) { - pr_warn("head:%px order:%u compound_mapcount:%d compound_pincount:%d\= n", + pr_warn("head:%p order:%u compound_mapcount:%d compound_pincount:%d\n= ", head, compound_order(head), compound_mapcount(head), compound_pincount(head)); } else { - pr_warn("head:%px order:%u compound_mapcount:%d\n", + pr_warn("head:%p order:%u compound_mapcount:%d\n", head, compound_order(head), compound_mapcount(head)); } --=20 2.27.0