running "pmap" on a short-lived process?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  perhaps i'm missing the point here but, for those of you who have a
copy of robert love's kernel book, on p. 260, he demonstrates the use
of "pmap" to examine a process' address space.  but he does it on a
trivial example:

int main()
[
	return 0;
}

  he then runs the command:

  $ cat /proc/1426/maps

where 1426 is apparently the PID of the sample process.  but how is it
that he can check that process when it would run and finish almost
immediately?  or am i misreading something?

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://www.fsdev.dreamhosters.com/wiki/index.php?title=Main_Page
========================================================================

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux