From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: Memory Mapping Date: Fri, 6 May 2011 11:31:11 -0400 Message-ID: <20110506153111.GA6950@dumpdata.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Lakshitha Harshan Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, May 06, 2011 at 08:20:18PM +0530, Lakshitha Harshan wrote: > Hi all, > > I want to get the access to task structs in domUs to get the memory > addresses of code segments in each process. So how do I read/map the data > correctly which I get through xc_map_foreign_range or xc_map_foreign_batch? You mean, how do I identify that the blob of memory you mapped is a task struct? I would suggest you look in the debuggers (gdbsx for example) and see how they figure this out.