From: peter on
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?

thanks
from Peter (cmk128(a)hotmail.com)
From: Maxwell Lol on
peter <cmk128(a)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.









From: Tauno Voipio on
peter wrote:
> 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?
>
> thanks
> from Peter (cmk128(a)hotmail.com)


There is no single memory block associated
with the files in /proc. For most of the
files, the output data is generated when
the read system call is performed to the file.

For documentation, get Linux sources and
see the proc filesystem description in the
documentation directory,

--

Tauno Voipio
From: unruh on
["Followup-To:" header set to comp.os.linux.misc.]
On 2010-01-30, Tauno Voipio <tauno.voipio(a)notused.fi.invalid> wrote:
> peter wrote:
>> 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?
>>
>> thanks
>> from Peter (cmk128(a)hotmail.com)
>
>
> There is no single memory block associated
> with the files in /proc. For most of the
> files, the output data is generated when
> the read system call is performed to the file.

No, but there is a single place to get the info, called /proc.
Why he wants something else I do not know. He is handed a single
location to get all the decoded data and then asks where he can find all
the data and how to decode it.

>
> For documentation, get Linux sources and
> see the proc filesystem description in the
> documentation directory,
>
From: peter on
I want to display the /proc information in my http://peter-bochs.googlecode.com

If /proc information is not stored in a fixed location, I probably
unable to read them.

thanks a lot
from Peter