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=-1.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 0539CC10F05 for ; Tue, 26 Mar 2019 12:35:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C8B732075D for ; Tue, 26 Mar 2019 12:35:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=eInfochipsIndia.onmicrosoft.com header.i=@eInfochipsIndia.onmicrosoft.com header.b="VJSA8zVm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731483AbfCZMf3 (ORCPT ); Tue, 26 Mar 2019 08:35:29 -0400 Received: from mail-eopbgr1320083.outbound.protection.outlook.com ([40.107.132.83]:14435 "EHLO APC01-PU1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726241AbfCZMf3 (ORCPT ); Tue, 26 Mar 2019 08:35:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eInfochipsIndia.onmicrosoft.com; s=selector1-einfochips-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tmQFqqiXViPOV80Ke9PWdjdAXynGZQpBxqpD7XSKzzM=; b=VJSA8zVmrBvLrSlta6LtRaWgjxuHZ/VG7FqqlFz8QU8PiSAidDNBVQR255Mefa+743q9tZhRIW8opKpWYxhL8PF1zZH1TX9Xclecv871xtNXQXpTYfovvEYx3oi8aFOi8AqzRGOGk3XPGFo9tt1QpUwJagKRYq5kuHEE5qnUtqE= Received: from SG2PR02MB3098.apcprd02.prod.outlook.com (20.177.88.78) by SG2PR02MB3434.apcprd02.prod.outlook.com (20.177.80.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Tue, 26 Mar 2019 12:35:25 +0000 Received: from SG2PR02MB3098.apcprd02.prod.outlook.com ([fe80::f432:20e4:2d22:e60b]) by SG2PR02MB3098.apcprd02.prod.outlook.com ([fe80::f432:20e4:2d22:e60b%4]) with mapi id 15.20.1730.019; Tue, 26 Mar 2019 12:35:25 +0000 From: Pankaj Suryawanshi To: Matthew Wilcox CC: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" Subject: Re: [External] Re: Print map for total physical and virtual memory Thread-Topic: [External] Re: Print map for total physical and virtual memory Thread-Index: AQHU46nCeD1YOwMRP0e9ea2iKxtjwaYdyRyAgAAQFrU= Date: Tue, 26 Mar 2019 12:35:25 +0000 Message-ID: References: ,<20190326113657.GL10344@bombadil.infradead.org> In-Reply-To: <20190326113657.GL10344@bombadil.infradead.org> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=pankaj.suryawanshi@einfochips.com; x-originating-ip: [14.98.130.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 16a4cc42-407d-4f65-475b-08d6b1e78565 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:SG2PR02MB3434; x-ms-traffictypediagnostic: SG2PR02MB3434:|SG2PR02MB3434: x-microsoft-antispam-prvs: x-forefront-prvs: 09888BC01D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(39850400004)(396003)(136003)(346002)(189003)(199004)(3846002)(53546011)(78486014)(33656002)(76176011)(8676002)(55016002)(7736002)(102836004)(6506007)(55236004)(99286004)(81156014)(7696005)(66574012)(26005)(53936002)(81166006)(5660300002)(6246003)(6916009)(478600001)(305945005)(9686003)(6436002)(229853002)(14454004)(105586002)(106356001)(316002)(256004)(86362001)(14444005)(74316002)(4326008)(54906003)(5024004)(25786009)(71200400001)(446003)(486006)(11346002)(66066001)(68736007)(6116002)(44832011)(476003)(52536014)(2906002)(71190400001)(97736004)(8936002)(186003)(586874002);DIR:OUT;SFP:1101;SCL:1;SRVR:SG2PR02MB3434;H:SG2PR02MB3098.apcprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: einfochips.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9GG86l8FdnYCP6KDPqmpLcG+AMq2VQyNP8oF3ALobndaI+O4W03qE910o4hHT5DPNWBjCpTspWdtaNjgz0JAiS1Il9r4Bf6U3ZZgL6Jji+fBYCVaw4s5r4QcdIFf/Sv7WW39P7WhkHWIzAWnpc1EqWwEAnSlSIH5K7oMPdBGluCVJUn1Vv7hSBKfnmBgwWr2q8Kdk90x/w2mYKWJ14lKo0hkmhjZkzj71RBIVqwA26wiHwyWJsYKz2Fd7XuAtfsJsrMlWgdP1PGBxTI4tUuo3CS5xv8oXVouQxcgf0JdrJSsZ7ql9+a8WlKtaq9k0Cr+e6pC9n8QPOLUI0Rx90/5R66Y4hCPi1vQEK/20ytCj7GY8Q9Ai6Dc++e1cyYL4tV9zo0eaYFAZGlT0UkV8CKWGfF8Ak0BgILjoWP0U5idBrs= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: einfochips.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16a4cc42-407d-4f65-475b-08d6b1e78565 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Mar 2019 12:35:25.0470 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0adb040b-ca22-4ca6-9447-ab7b049a22ff X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR02MB3434 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ________________________________________ From: Matthew Wilcox Sent: 26 March 2019 17:06 To: Pankaj Suryawanshi Cc: linux-kernel@vger.kernel.org; linux-mm@kvack.org Subject: [External] Re: Print map for total physical and virtual memory CAUTION: This email originated from outside of the organization. Do not cli= ck links or open attachments unless you recognize the sender and know the c= ontent is safe. On Tue, Mar 26, 2019 at 08:34:20AM +0000, Pankaj Suryawanshi wrote: > Hello, > > 1. Is there any way to print whole physical and virtual memory map in ker= nel/user space ? > > 2. Is there any way to print map of cma area reserved memory and movable = pages of cma area. > > 3. Is there any way to know who pinned the pages from cma reserved area ? You probably want tools/vm/page-types.c Can you please elaborate about tools/vm/page-types.c ? ***************************************************************************= ***************************************************************************= ******* eInfochips Business Disclaimer: This e-mail message and all attachm= ents transmitted with it are intended solely for the use of the addressee a= nd may contain legally privileged and confidential information. If the read= er of this message is not the intended recipient, or an employee or agent r= esponsible for delivering this message to the intended recipient, you are h= ereby notified that any dissemination, distribution, copying, or other use = of this message or its attachments is strictly prohibited. If you have rece= ived this message in error, please notify the sender immediately by replyin= g to this message and please delete it from your computer. Any views expres= sed in this message are those of the individual sender unless otherwise sta= ted. Company has taken enough precautions to prevent the spread of viruses.= However the company accepts no liability for any damage caused by any viru= s transmitted by this email. **********************************************= ***************************************************************************= ************************************