#
36a17127 |
| 08-Oct-2007 |
ad <ad@NetBSD.org> |
Merge run time accounting changes from the vmlocking branch. These make the LWP "start time" per-thread instead of per-CPU.
|
#
f1a59086 |
| 26-May-2007 |
agc <agc@NetBSD.org> |
In /proc/<pid>/statm, avoid leaking buffer space if the attempt to get vmspace information fails.
Return the nice value properly to userland via the /proc/<pid>/stat entry.
Use vm sizes from vmspac
In /proc/<pid>/statm, avoid leaking buffer space if the attempt to get vmspace information fails.
Return the nice value properly to userland via the /proc/<pid>/stat entry.
Use vm sizes from vmspace, rather than rusage structs, for the same reasons as mentioned previously - see the comment in kvm_proc.c::kvm_getproc2() about rusage values and zombie processes.
show more ...
|
#
12003e87 |
| 25-May-2007 |
agc <agc@NetBSD.org> |
Use a bit more common code for the MULTIPROCESSOR and !MULTIPROCESSOR cases.
Use the lwp's priority when returning the priority value, rather than returning the nice value.
|
#
15a3a67e |
| 25-May-2007 |
agc <agc@NetBSD.org> |
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
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.
show more ...
|
#
905b715a |
| 24-May-2007 |
dogcow <dogcow@NetBSD.org> |
use PRIu64, not llu, to unbork on 64-bit platforms.
|
#
4dbe5ed7 |
| 24-May-2007 |
agc <agc@NetBSD.org> |
Extend the Linux emulation of /proc to include
/proc/stat /proc/loadavg and /proc/<pid>/statm.
These are only present when -o linux is specified as a mount option to procfs.
Factor out some com
Extend the Linux emulation of /proc to include
/proc/stat /proc/loadavg and /proc/<pid>/statm.
These are only present when -o linux is specified as a mount option to procfs.
Factor out some common code so that it can be used by a number of functions.
XXX The values returned in the statm emulation need to be verified.
show more ...
|
#
6a482516 |
| 01-Apr-2007 |
christos <christos@NetBSD.org> |
return a page less than the actual top of stack so that linux-java works.
|
#
c147748d |
| 09-Mar-2007 |
ad <ad@NetBSD.org> |
- Make the proclist_lock a mutex. The write:read ratio is unfavourable, and mutexes are cheaper use than RW locks. - LOCK_ASSERT -> KASSERT in some places. - Hold proclist_lock/kernel_lock longer i
- Make the proclist_lock a mutex. The write:read ratio is unfavourable, and mutexes are cheaper use than RW locks. - LOCK_ASSERT -> KASSERT in some places. - Hold proclist_lock/kernel_lock longer in a couple of places.
show more ...
|
#
b07ec3fc |
| 09-Feb-2007 |
ad <ad@NetBSD.org> |
Merge newlock2 to head.
|
#
a6877176 |
| 24-Dec-2006 |
elad <elad@NetBSD.org> |
Add two comments. No functional change.
|
#
168cd830 |
| 16-Nov-2006 |
christos <christos@NetBSD.org> |
__unused removal on arguments; approved by core.
|
#
26bb1685 |
| 27-Oct-2006 |
christos <christos@NetBSD.org> |
don't allocate large buffers on the stack.
|
#
af94ee30 |
| 23-Oct-2006 |
elad <elad@NetBSD.org> |
PR/34888: Nicolas Joly: kernel panic while trying to access /emul/linux/proc/0/stat
Patch applied, thanks for the report!
|
#
4d595fd7 |
| 12-Oct-2006 |
christos <christos@NetBSD.org> |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
#
a540ef29 |
| 20-Sep-2006 |
manu <manu@NetBSD.org> |
Emulate Linux's /proc/devices
|
#
f36aa0cd |
| 24-Jun-2006 |
christos <christos@NetBSD.org> |
PR/33815: Nicolas Joly: /emul/linux/proc/#/stat always report current process status
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
c107ef9e |
| 29-May-2005 |
christos <christos@NetBSD.org> |
- sprinkle const - avoid shadowed variables.
|
#
bb48399e |
| 01-Mar-2005 |
christos <christos@NetBSD.org> |
Remove bogus len setting noted by J. Chapman Flack.
|
#
1a63592a |
| 27-Feb-2005 |
christos <christos@NetBSD.org> |
Give more space for cpu info and allocate it dynamically.
|
#
477853c3 |
| 26-Feb-2005 |
perry <perry@NetBSD.org> |
nuke trailing whitespace
|
#
845beacc |
| 20-Sep-2004 |
jdolecek <jdolecek@NetBSD.org> |
add 'mounts' file for -o linux, which lists all currently mounted filesystems; Linux glibc statvfs() uses this to get some of mount flags, and this file is also useful as /emul/linux/etc/mtab (via sy
add 'mounts' file for -o linux, which lists all currently mounted filesystems; Linux glibc statvfs() uses this to get some of mount flags, and this file is also useful as /emul/linux/etc/mtab (via symlink)
show more ...
|
#
685703c3 |
| 27-Aug-2004 |
skrll <skrll@NetBSD.org> |
Do previous slightly differently - just pass a struct lwp * and derive the struct proc *.
OK'd by Jaromir.
|
#
b1126ead |
| 21-Aug-2004 |
jdolecek <jdolecek@NetBSD.org> |
fix process used for /proc/<pid>/stat contents - it should be process <pid>, not the current process looking at the information
|
#
8bcb745d |
| 22-Apr-2004 |
itojun <itojun@NetBSD.org> |
sprintf -> snprintf
|