Article View: comp.os.linux.misc
Article #1000Re: decode /proc
From: Maxwell Lol
Date: Sat, 30 Jan 2010 02:32
Date: Sat, 30 Jan 2010 02:32
27 lines
2129 bytes
2129 bytes
peter <cmk128@gmail.com> writes: > Dear All > I want to display the /proc information in my bochs GUI (http:// > peter-bochs.googlecode.com). My question is, Is /proc completely > located in memory? If yes, how can I get its location? and how can I > decode it? Hmm. /proc is a pseudo-file that maps complex in-memory kernal structures to an easy-to-use set of files. It eliminates the need to understand complex kernel structures, or to even know the location of the structures. When you say "How can I get it's location" - I'm not sure what you want to do. The memory manager maps virtual addresses into physical addresses, and I am not sure you want the physical address. And virtual addresses are relative to each process. Get "what" location exactly? Do you want to know the exact contents of the kernel memory? Or do you want to know the exact contents of your program in memory? The second is usually done with a debugger. You could read the "proc" man page and examine /proc/$PID and see if that helps. I think a debugger is an easier approach, as it will help you map variables in your source code to memory contents.
Technical Details
Message-ID:
<87ockcgw4y.fsf@mythtv.grymoire.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mailReferences:
<ffa8c4ab-38c4-4788-8100-7a395cfdb4f9@b10g2000yqa.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 8e88ce0507,8f941b20aeeed6a1 X-Google-Attributes: gid8e88ce0507,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mail From: Maxwell Lol <nospam@com.invalid> Newsgroups: comp.os.linux.misc,cn.bbs.comp.unix.development.kernel Subject: Re: decode /proc Date: Fri, 29 Jan 2010 21:32:45 -0500 Organization: Glorb Internet Services, http://www.glorb.com Lines: 36 Message-ID: <87ockcgw4y.fsf@mythtv.grymoire.com> References: <ffa8c4ab-38c4-4788-8100-7a395cfdb4f9@b10g2000yqa.googlegroups.com> NNTP-Posting-Host: to7PmmoPTbcJkn3DUv8Dqg.user.posting2.glorb.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@glorb.com NNTP-Posting-Date: Sat, 30 Jan 2010 02:33:00 +0000 (UTC) X-Notice: Scanned by Mr. Bill User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)