christos
0726b418be
Maps don't change that frequently between reads, so don't give up and
...
do what linux does (support reading from an offset).
2014-10-17 20:49:22 +00:00
riastradh
6cb10275d0
Merge riastradh-drm2 to HEAD.
2014-03-18 18:20:35 +00:00
ryo
b0a2ff862e
PR/48048: Add a missing vm_map_unlock_read() and uvmspace_free() to the ENOMEM error case in procfs_domap()d
2013-07-18 07:59:44 +00:00
christos
3a2a43f2ca
- match format with the linux map printing
...
- fix PK_32 map printing for linux processes
should fix 32 bit java stack guard setting.
2012-05-06 03:13:11 +00:00
hannken
961731268e
VOP_GETATTR() needs a shared lock at least.
2011-10-16 12:26:16 +00:00
yamt
cead2083b6
fix a botch in PRIxVADDR change (rev.1.38)
2011-07-26 13:18:55 +00:00
jym
b8a7885350
Use PRIxVADDR to print vaddr_t elements. Wrap lines.
2010-09-15 21:37:35 +00:00
uebayasi
1f7c235131
gimpy invented PRIxVADDR format specifier.
2009-12-14 13:00:07 +00:00
christos
461a86f9bd
merge christos-time_t
2009-01-11 02:45:45 +00:00
christos
b00559d07e
use bufsize instead of BUFFERSIZE
2008-07-25 18:36:50 +00:00
christos
3bccc0f766
Handle files with a large number of mappings gracefully. Reported by Nicholas
...
Joly.
2008-07-25 17:40:24 +00:00
christos
177940c72e
use vnode_to_path.
2007-12-15 23:52:00 +00:00
pooka
61e8303e9d
Remove the "struct lwp *" argument from all VFS and VOP interfaces.
...
The general trend is to remove it from all kernel interfaces and
this is a start. In case the calling lwp is desired, curlwp should
be used.
quick consensus on tech-kern
2007-11-26 19:01:26 +00:00
pooka
a97de7b959
nuke homegrown getcwd_common() decl
2007-07-21 22:47:36 +00:00
christos
a7761fd2c5
Instead of reading and writing little by little, allocate memory and
...
write the whole map in one shot so that we don't have to deal with the
map changing under us. Fixes the linux emulated jdk-1.6 where it was
losing the last map entry and could not find the stack on startup.
2007-04-01 03:18:57 +00:00
ad
42a7dff463
procfs_map():
...
- Drop the target's vm_map lock before calling uiomove(). We could
deadlock if inspecting /proc/curproc/map.
- If the vm_map might have changed, restart the operation, but give
up after 250 retries if the map keeps changing. XXX This is not
ideal.
2007-02-18 20:03:44 +00:00
pavel
934634a18c
Change the process/lwp flags seen by userland via sysctl back to the
...
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.
Restores source compatibility with pre-newlock2 tools like ps or top.
Reviewed by Andrew Doran.
2007-02-17 22:31:36 +00:00
ad
b07ec3fc38
Merge newlock2 to head.
2007-02-09 21:55:00 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +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
ad
f474dceb13
Use the LWP cached credentials where sane.
2006-07-23 22:06:03 +00:00
elad
fc9422c9d9
integrate kauth.
2006-05-14 21:31:52 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
xtraeme
af97f2e875
Remove __P()
2005-08-30 20:08:01 +00:00
perry
477853c351
nuke trailing whitespace
2005-02-26 22:58:54 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +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
thorpej
a06b275edc
Undo part of the ktrace/lwp changes. In particular:
...
* Remove the "lwp *" argument that was added to vget(). Turns out
that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
just to appease the above.
2003-06-29 18:43:21 +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
thorpej
b7d2ca250a
Fix signed/unsigned comparison warnings.
2002-11-07 08:13:10 +00:00
lukem
e4b00f433c
add RCSIDs
2001-11-10 13:33:40 +00:00
simonb
cf63a6b052
Remove some variables that are set but never used.
2001-11-06 07:20:37 +00:00
chs
821ec03ed9
replace vm_map{,_entry}_t with struct vm_map{,_entry} *.
2001-06-02 18:09:08 +00:00
pk
3c425b682f
Cast field-width' arguments to type
int'.
2001-04-02 07:16:05 +00:00
fvdl
2e64bebd3b
For -o linux mounts, add some code to emulate /proc/#/maps.
...
Needs NAMECACHE_ENTER_REVERSE to include filenames.
2001-03-29 22:41:52 +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
chs
b0ec16cc38
remove dead code and other misc cleanup.
2000-11-24 18:58:37 +00:00
mrg
20515f2854
<vm/vm.h> -> <uvm/uvm_extern.h>
2000-06-28 02:44:06 +00:00
mrg
e185413725
remove redudant <vm/pmap.h> includes. <vm/pmap.h> -> <uvm/uvm_pmap.h>
2000-06-27 04:18:48 +00:00
mrg
c543a66253
remove some redundant <vm/vm_xxx.h> includes
2000-06-25 13:26:19 +00:00
drochner
10bc77390d
remove unneeded <vm/vm_object.h>
1999-04-10 14:00:38 +00:00
mrg
d2397ac5f7
completely remove Mach VM support. all that is left is the all the
...
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
msaitoh
1f5b9b4d63
sprintf->snprintf
1999-02-03 05:05:03 +00:00
drochner
7847c0f52e
make it compile with !UVM
1999-01-28 21:18:00 +00:00
msaitoh
ea669760d6
Add /proc/#/map. From FreeBSD.
1999-01-25 02:20:08 +00:00