agc
4dbe5ed7e7
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.
2007-05-24 00:37:40 +00:00
christos
6a4825167b
return a page less than the actual top of stack so that linux-java works.
2007-04-01 03:16:44 +00:00
ad
c147748d84
- 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.
2007-03-09 14:11:22 +00:00
ad
b07ec3fc38
Merge newlock2 to head.
2007-02-09 21:55:00 +00:00
elad
a687717695
Add two comments. No functional change.
2006-12-24 16:45:23 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
christos
26bb1685bd
don't allocate large buffers on the stack.
2006-10-27 16:49:01 +00:00
elad
af94ee3081
PR/34888: Nicolas Joly: kernel panic while trying to access
...
/emul/linux/proc/0/stat
Patch applied, thanks for the report!
2006-10-23 18:19:14 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
manu
a540ef296e
Emulate Linux's /proc/devices
2006-09-20 08:09:05 +00:00
christos
f36aa0cd37
PR/33815: Nicolas Joly: /emul/linux/proc/#/stat always report current
...
process status
2006-06-24 16:34:02 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
christos
c107ef9edc
- sprinkle const
...
- avoid shadowed variables.
2005-05-29 21:55:33 +00:00
christos
bb48399e9b
Remove bogus len setting noted by J. Chapman Flack.
2005-03-01 04:39:59 +00:00
christos
1a63592a9b
Give more space for cpu info and allocate it dynamically.
2005-02-27 22:29:50 +00:00
perry
477853c351
nuke trailing whitespace
2005-02-26 22:58:54 +00:00
jdolecek
845beacce3
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)
2004-09-20 17:53:08 +00:00
skrll
685703c354
Do previous slightly differently - just pass a struct lwp * and derive the
...
struct proc *.
OK'd by Jaromir.
2004-08-27 07:02:45 +00:00
jdolecek
b1126ead62
fix process used for /proc/<pid>/stat contents - it should be process
...
<pid>, not the current process looking at the information
2004-08-21 15:59:32 +00:00
itojun
8bcb745d7c
sprintf -> snprintf
2004-04-22 00:31:00 +00:00
christos
4c1141b840
t_pgrp can be null.
2003-10-30 14:51:01 +00:00
he
25d9b10ee9
Add casts of LINUX_USRSTACK and USRSTACK to handle the cases
...
where these are not constants.
2003-08-21 23:00:07 +00:00
christos
c626c860b1
LINUX_USRSTACK is only defined on i386. Thanks Izumi!
2003-08-09 16:28:49 +00:00
christos
a24080409e
Only choose the linux usrstack if the netbsd usrstack was higher.
2003-08-09 14:17:28 +00:00
christos
9897a5425c
Change the way we compute the top of the stack. This makes java-1.4.2 work.
2003-08-09 13:44:39 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
...
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
hannken
5c19a0665c
Change "%qu" to "PRIu64" to make it compile on sparc64.
2003-05-29 08:13:41 +00:00
christos
210944c7de
Add /proc/<pid>/stat for linux compat. j2sdk1.4.2 depends on it.
2003-05-28 18:03:15 +00:00
hannken
11d5f11e82
Change "%llu" to "PRIu64" to make it compile on sparc64.
2003-02-27 12:20:28 +00:00
jrf
a2d850baf8
This addresses PR kerm/19989. Thanks to hamajima@nagoya.ydc.co.jp for submitting this patch which enables /proc/uptime for linux emul. Patch reviewed by atatat@netbsd.org and tron@netbsd.org, approved by tron@netbsd.org.
2003-02-25 21:00:31 +00:00
chs
8e9cdbbd63
replace "vnode" and "vtext" with "file" and "exec" in uvmexp field names.
2001-12-09 03:07:43 +00:00
lukem
e4b00f433c
add RCSIDs
2001-11-10 13:33:40 +00:00
tv
231789093f
No-op revision to force update of this file to a non-"-kk" version.
2001-01-18 16:39:43 +00:00
fvdl
4e000b75b2
Add a few linux-style files, only enabled when -o linux is specified
...
for the mount. Currently these are /proc/cpuinfo and /proc/meminfo.
The former only does something on i386 right now.
2001-01-17 00:09:07 +00:00