Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4224595img; Tue, 26 Mar 2019 05:36:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzowGBwREYuLWLXSYq8/q71dGs6xWVOVX3dNKcj9Y9jK6vMajXdz4KhW5DpDAZ/vxfiavJq X-Received: by 2002:a17:902:7610:: with SMTP id k16mr31212776pll.215.1553603785162; Tue, 26 Mar 2019 05:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553603785; cv=none; d=google.com; s=arc-20160816; b=BrKlnQCccjx8WwxdcenRiP5YD9GuGWhl0MLWvjNW7a8rt/gzSL/6XAAkPHappwvNNN dxVLVw5XK58NNbsq3X90w4EZSv883jeXkcHHVx9H9ImOdVWmbRJAQsUol3ao4xM/AsCf 27q49RKwyPqeVPMzjS2AuzxG5UiRNPsw8dMYPZkEV3MQ1mOnkvRKY8aDTt8KaxgyDXY9 FbOnCZ/Wltz6cQqnOhB+BrESAuctH/BJHYpATtrfIuVDP2ek6O6yxMSVfe3IR/WXGHYc PA0UeuACyhCkZ7IHIWNYr3tsk3tT6nGXUjdBxL49/7vMpf7AKJR2za+E0xav6Rspv1I7 cNZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=tmQFqqiXViPOV80Ke9PWdjdAXynGZQpBxqpD7XSKzzM=; b=hYjaMV6FDWk2PWDnz8fPFyZrCieWbL6f++dlkrFCRmnJ12lFWtHyOBtLGO/nd7RUUn u8kl/zfeC9niVdNTq7TQN303rwHHxjrnHC154/W9l2WCwv+lX4ISj+neTX56yEmAbmzM 4mm3mMixNGawSuC6wQLY4Mg1noNYd6mCjbddFbnDhAUxSU+gMFolhDyjGte3/B2bRr/2 n+zhUJyMeovRSLVd5CuBCxtKjJ7GvFl3YMkOsKCFEqsWIOydv+QFHDBS8oBotIbitjae CuN2facZK/OwYP7Lurr8ntgNhCNj21IZL2fLtrCELivnxYYnMxXLzJ6pbtsK0jZaESjt ibmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eInfochipsIndia.onmicrosoft.com header.s=selector1-einfochips-com header.b=VJSA8zVm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si15875939pgq.363.2019.03.26.05.36.09; Tue, 26 Mar 2019 05:36:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@eInfochipsIndia.onmicrosoft.com header.s=selector1-einfochips-com header.b=VJSA8zVm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731475AbfCZMf3 (ORCPT + 99 others); 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. **********************************************= ***************************************************************************= ************************************