[uClinux-dev] uClinux-dist-test-20070108: empty /proc/pid/cmdline
Thomas Chou
thomas at wytron.com.tw
Mon Jan 29 01:30:24 EST 2007
Hi all,
We found the /proc/pid/cmdline , and /proc/pid/environ are empty in
uClinux-dist-test-20070108 with nios2nommu arch and kernel 2.6. The PS
in SASH works, because it will use /proc/pid/status if /proc/pid/cmdline
doesn't work. However the top in busybox won't work.
Several NOMMU codes changed in linux-2.6.19 . I traced the
fs/proc/base.c, mm/nommu.c and finally fs/exec.c . The args are not
setup in the map as it is for MMU arch. So the read to cmdline and
environ failed.
Thanks for any help,
Thomas Chou
More information about the uClinux-dev
mailing list