Re: getting process' pagetable

2005-06-26 Thread Boris Zingerman
Hi What actually happens is that I have some proprietary binary driver that performs zero copy DMA into user buffers. For this to be done it forces pages composing these buffers to be allocated RAM frames and locks them, so page table entries for these buffers shouldn't change and these entri

Re: getting process' pagetable

2005-06-24 Thread Muli Ben-Yehuda
On Fri, Jun 24, 2005 at 01:03:05PM +0300, shimi wrote: > Reading memory data from another process is, according to what I recall, > something that the system should protect against (not just writing to > memory space which is not yours, but also reading from there - there are > obvious security im

Re: getting process' pagetable

2005-06-24 Thread Muli Ben-Yehuda
On Fri, Jun 24, 2005 at 12:35:34PM +0300, Efraim Yawitz wrote: > I already got it from the new Slackware distrib and built it. Now I want > to know, how can this be used to dump the memory from a process to a > file? It can't. Check out dumpmem(1) at http://www.mulix.org/dumpmem.html, though. C

Re: getting process' pagetable

2005-06-24 Thread shimi
On Fri, 2005-06-24 at 12:35 +0300, Efraim Yawitz wrote: > On Fri, 24 Jun 2005, shimi wrote: > > > > > $ pmap -V > > pmap (procps version 3.2.5) > > > > [this is on gentoo linux] > > > Thanks. > > I already got it from the new Slackware distrib and built it. Now I want > to know, how can this

Re: getting process' pagetable

2005-06-24 Thread Efraim Yawitz
On Fri, 24 Jun 2005, shimi wrote: > > $ pmap -V > pmap (procps version 3.2.5) > > [this is on gentoo linux] > Thanks. I already got it from the new Slackware distrib and built it. Now I want to know, how can this be used to dump the memory from a process to a file? Ephraim =

Re: getting process' pagetable

2005-06-24 Thread shimi
On Fri, 2005-06-24 at 10:18 +0300, Efraim Yawitz wrote: > I don't seem to have any program called pmap on my Slackware 7.0 system, > and searching the web gave me the impression that this is a program which > only exists on BSD or Solaris. What distribution do you have, and where > can I get the s

Re: getting process' pagetable

2005-06-24 Thread Efraim Yawitz
On Thu, 23 Jun 2005, Muli Ben-Yehuda wrote: > On Thu, Jun 23, 2005 at 01:00:23PM +0300, Nadav Har'El wrote: > > > If this is enough for you, then you have /proc/NUMBER/maps. > > pmap(1) displays it nicely formatted > I don't seem to have any program called pmap on my Slackware 7.0 system, and

Re: getting process' pagetable

2005-06-23 Thread Muli Ben-Yehuda
On Thu, Jun 23, 2005 at 01:00:23PM +0300, Nadav Har'El wrote: > If this is enough for you, then you have /proc/NUMBER/maps. pmap(1) displays it nicely formatted Cheers, Muli -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/ ===

Re: getting process' pagetable

2005-06-23 Thread Nadav Har'El
On Wed, Jun 22, 2005, Muli Ben-Yehuda wrote about "Re: getting process' pagetable": > On Wed, Jun 22, 2005 at 05:33:48PM +0300, Boris Zingerman wrote: > > Hi > > > > Is it possible to print/dump pagetable of a > > given process ( through /proc filesyst

Re: getting process' pagetable

2005-06-22 Thread Muli Ben-Yehuda
On Wed, Jun 22, 2005 at 07:40:07PM +0300, Muli Ben-Yehuda wrote: > On Wed, Jun 22, 2005 at 05:33:48PM +0300, Boris Zingerman wrote: > > Hi > > > > Is it possible to print/dump pagetable of a > > given process ( through /proc filesystem maybe ) ? > > Not out of the box. It's fairly trivial to impl

Re: getting process' pagetable

2005-06-22 Thread Muli Ben-Yehuda
On Wed, Jun 22, 2005 at 05:33:48PM +0300, Boris Zingerman wrote: > Hi > > Is it possible to print/dump pagetable of a > given process ( through /proc filesystem maybe ) ? Not out of the box. It's fairly trivial to implement in the kernel, if you don't mind "stopping the world" so that the data me

getting process' pagetable

2005-06-22 Thread Boris Zingerman
Hi Is it possible to print/dump pagetable of a given process ( through /proc filesystem maybe ) ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscr