NetBSD/sys/miscfs/procfs
agc 15a3a67ede Various changes for better Linux emulation:
+ in /proc/<pid>/statm emulation, use the memory values from vmspace,
rather than struct rusage, since the rusage values appear to be 0 for
all processes except zombies.  cf dsl's comment in
kvm_proc.c::kvm_getproc2()

+ in /proc/<pid>/stat, instead of returning the tv_sec value, return the
number of ticks we've had (roughly equivalent to the Linux jiffies).
Calculate these values from the tv_usec values.

Also:

+ enclose CPU_INFO_ITERATOR and CPU_INFO_FOREACH usage in #ifdef
MULTIPROCESSOR, at the request of Nick Hudson

Together, these changes allow htop to work on NetBSD.
2007-05-25 19:20:06 +00:00
..
Makefile
files.procfs Restore dependency on PTRACE for PROCFS. 2006-08-30 13:49:27 +00:00
procfs.h Extend the Linux emulation of /proc to include 2007-05-24 00:37:40 +00:00
procfs_cmdline.c Change the process/lwp flags seen by userland via sysctl back to the 2007-02-17 22:31:36 +00:00
procfs_ctl.c - Make the proclist_lock a mutex. The write:read ratio is unfavourable, 2007-03-09 14:11:22 +00:00
procfs_fd.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
procfs_fpregs.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
procfs_linux.c Various changes for better Linux emulation: 2007-05-25 19:20:06 +00:00
procfs_map.c Instead of reading and writing little by little, allocate memory and 2007-04-01 03:18:57 +00:00
procfs_mem.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
procfs_note.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
procfs_regs.c __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
procfs_status.c - Make the proclist_lock a mutex. The write:read ratio is unfavourable, 2007-03-09 14:11:22 +00:00
procfs_subr.c Extend the Linux emulation of /proc to include 2007-05-24 00:37:40 +00:00
procfs_vfsops.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
procfs_vnops.c Extend the Linux emulation of /proc to include 2007-05-24 00:37:40 +00:00