Robert Wessels wrote:
Hi,

I have been subscribed to this list for a while now and found a lot of answers to my questions in the archives. Thank you for that!

One I could not find, and hope someone can help me answer, is:

How do I enable /proc/PID/smap in the uClinux kernel.
I would like to have so that I can keep a tap on what the current stack size allocation is of a certain process.

Hopefully I will be able to contribute to this list ones I get more familiar with uClinux.

Thanks,

Robert Wessels

Hi Robert,
The code for smap is in linux/fs/proc/task_mmu.c
The use of this file  is disabled in linux/fs/proc/Makefile
where linux/fs/proc/task_nommu.c is used.

The proc/PID/smap option does not seem to be enabled in that file.

YOu may be able to copy some of the code linux/fs/proc/task_mmu.c but will have to find a different way to discover the stack size.

However, since the stack is fixed in noMMU uClinux, you can simply
look at the executables and see what the stack allocation is for those files.
The "flthdr" tool will tell you this information if you are using a
flat file based system.

Hope this helps
  Phil Wilshire

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to