Skip site navigation (1)Skip section navigation (2)

CVS log for src/sys/fs/procfs/procfs_map.c

[BACK] Up to [FreeBSD] / src / sys / fs / procfs

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.54.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.54.2.1: preferred, colored
Changes since revision 1.54.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)

Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)

Revision 1.51.2.3: download - view: text, markup, annotated - select for diffs
Tue Mar 1 20:44:14 2011 UTC (11 months, 1 week ago) by dchagin
Branches: RELENG_8
Diff to: previous 1.51.2.2: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.2.2: +2 -2 lines
SVN rev 219144 on 2011-03-01 20:44:14Z by dchagin

MFC r217896:
Add macro to test the sv_flags of any process. Change some places to test
the flags instead of explicit comparing with address of known sysentvec
structures.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Jan 26 20:03:58 2011 UTC (12 months, 2 weeks ago) by dchagin
Branches: MAIN
CVS tags: RELENG_9_BP, HEAD
Branch point for: RELENG_9
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -2 lines
SVN rev 217896 on 2011-01-26 20:03:58Z by dchagin

Add macro to test the sv_flags of any process. Change some places to test
the flags instead of explicit comparing with address of known sysentvec
structures.

MFC after:	1 month

Revision 1.40.2.6.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.40.2.6: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.6: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.51.2.2.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.51.2.2: preferred, colored; next MAIN 1.51.2.3: preferred, colored
Changes since revision 1.51.2.2: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Dec 2 17:37:16 2010 UTC (14 months, 1 week ago) by trasz
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
SVN rev 216128 on 2010-12-02 17:37:16Z by trasz

Replace pointer to "struct uidinfo" with pointer to "struct ucred"
in "struct vm_object".  This is required to make it possible to account
for per-jail swap usage.

Reviewed by:	kib@
Tested by:	pho@
Sponsored by:	FreeBSD Foundation

Revision 1.51.2.2.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.51.2.2: preferred, colored; next MAIN 1.51.2.3: preferred, colored
Changes since revision 1.51.2.2: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)

Revision 1.51.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 7 02:24:41 2010 UTC (22 months ago) by nwhitehorn
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP
Branch point for: RELENG_8_2, RELENG_8_1
Diff to: previous 1.51.2.1: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.1: +4 -4 lines
SVN rev 206336 on 2010-04-07 02:24:41Z by nwhitehorn

MFC r205014,205015:

Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32
option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts
of the kernel and enhances the freebsd32 compatibility code to support
big-endian platforms.

This MFC is required for MFCs of later changes to the freebsd32
compatibility from HEAD.

Requested by:	kib

Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Mar 11 14:49:06 2010 UTC (23 months ago) by nwhitehorn
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -4 lines
SVN rev 205014 on 2010-03-11 14:49:06Z by nwhitehorn

Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32
option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts
of the kernel and enhances the freebsd32 compatibility code to support
big-endian platforms.

Reviewed by:	kib, jhb

Revision 1.40.2.6.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.40.2.6: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.6: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.51.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.51.2.1: preferred, colored; next MAIN 1.51.2.2: preferred, colored
Changes since revision 1.51.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)

Revision 1.40.2.6: download - view: text, markup, annotated - select for diffs
Mon Sep 14 17:34:49 2009 UTC (2 years, 4 months ago) by jhb
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP
Branch point for: RELENG_7_4, RELENG_7_3
Diff to: previous 1.40.2.5: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.5: +1 -0 lines
SVN rev 197197 on 2009-09-14 17:34:49Z by jhb

MFC 195840, 195844, and 196637:
Add a new type of VM object: OBJT_SG.  An OBJT_SG object is very similar to
a device pager (OBJT_DEVICE) object in that it uses fictitious pages to
provide aliases to other memory addresses.  The primary difference is that
it uses an sglist(9) to determine the physical addresses for a given offset
into the object instead of invoking the d_mmap() method in a device driver.

Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_0_BP
Branch point for: RELENG_8_0
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Jul 24 13:50:29 2009 UTC (2 years, 6 months ago) by jhb
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +1 -0 lines
SVN rev 195840 on 2009-07-24 13:50:29Z by jhb

Add a new type of VM object: OBJT_SG.  An OBJT_SG object is very similar to
a device pager (OBJT_DEVICE) object in that it uses fictitious pages to
provide aliases to other memory addresses.  The primary difference is that
it uses an sglist(9) to determine the physical addresses for a given offset
into the object instead of invoking the d_mmap() method in a device driver.

Reviewed by:	alc
Approved by:	re (kensmith)
MFC after:	2 weeks

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Jun 23 20:45:22 2009 UTC (2 years, 7 months ago) by kib
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +8 -3 lines
SVN rev 194766 on 2009-06-23 20:45:22Z by kib

Implement global and per-uid accounting of the anonymous memory. Add
rlimit RLIMIT_SWAP that limits the amount of swap that may be reserved
for the uid.

The accounting information (charge) is associated with either map entry,
or vm object backing the entry, assuming the object is the first one
in the shadow chain and entry does not require COW. Charge is moved
from entry to object on allocation of the object, e.g. during the mmap,
assuming the object is allocated, or on the first page fault on the
entry. It moves back to the entry on forks due to COW setup.

The per-entry granularity of accounting makes the charge process fair
for processes that change uid during lifetime, and decrements charge
for proper uid when region is unmapped.

The interface of vm_pager_allocate(9) is extended by adding struct ucred *,
that is used to charge appropriate uid when allocation if performed by
kernel, e.g. md(4).

Several syscalls, among them is fork(2), may now return ENOMEM when
global or per-uid limits are enforced.

In collaboration with:	pho
Reviewed by:	alc
Approved by:	re (kensmith)

Revision 1.40.2.5.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.40.2.5: preferred, colored; next MAIN 1.40.2.6: preferred, colored
Changes since revision 1.40.2.5: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.40.2.5: download - view: text, markup, annotated - select for diffs
Tue Feb 17 22:46:30 2009 UTC (2 years, 11 months ago) by jhb
Branches: RELENG_7
CVS tags: RELENG_7_2_BP
Branch point for: RELENG_7_2
Diff to: previous 1.40.2.4: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.4: +2 -3 lines
SVN rev 188738 on 2009-02-17 22:46:30Z by jhb

MFC: Remove unnecessary locking around vn_fullpath().  This also includes
closing some races between procfs' <pid>/file and execve(2) and using a
shared vnode lock for the VOP_GETATTR() in the kern.proc.vmmap sysctl
handler.

Revision 1.40.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 29 11:13:03 2009 UTC (3 years ago) by kib
Branches: RELENG_7
Diff to: previous 1.40.2.3: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.3: +1 -1 lines
SVN rev 187889 on 2009-01-29 11:13:03Z by kib

MFC r186563:
vm_map_lock_read() does not increment map->timestamp, so we should
compare map->timestamp with saved timestamp after map read lock is
reacquired, not with saved timestamp + 1. The only consequence of the +1
was unconditional lookup of the next map entry, though.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Dec 29 12:45:11 2008 UTC (3 years, 1 month ago) by kib
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +1 -1 lines
SVN rev 186563 on 2008-12-29 12:45:11Z by kib

vm_map_lock_read() does not increment map->timestamp, so we should
compare map->timestamp with saved timestamp after map read lock is
reacquired, not with saved timestamp + 1. The only consequence of the +1
was unconditional lookup of the next map entry, though.

Tested by:	pho
Approved by:	des
MFC after:	2 weeks

Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Dec 29 12:41:32 2008 UTC (3 years, 1 month ago) by kib
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -11 lines
SVN rev 186562 on 2008-12-29 12:41:32Z by kib

Use curproc->p_sysent->sv_flags bit SV_ILP32 for detection of the 32 bit
caller, instead of direct comparision with ia32_freebsd_sysvec.

Tested by:	pho
Approved by:	des
MFC after:	2 weeks

Revision 1.40.2.1.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 19 16:11:04 2008 UTC (3 years, 1 month ago) by kib
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.40.2.1.2.2: preferred, colored; branchpoint 1.40.2.1: preferred, colored; next MAIN 1.40.2.2: preferred, colored
Changes since revision 1.40.2.1.2.2: +8 -1 lines
SVN rev 186329 on 2008-12-19 16:11:04Z by kib

MFC r185984:
Reference the vmspace of the process being inspected by procfs, linprocfs
and sysctl kern_proc_vmmap handlers.

Approved by:	re (kensmith)

Revision 1.40.2.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Dec 19 16:03:20 2008 UTC (3 years, 1 month ago) by kib
Branches: RELENG_7_1
Diff to: previous 1.40.2.1.2.1: preferred, colored; branchpoint 1.40.2.1: preferred, colored
Changes since revision 1.40.2.1.2.1: +29 -11 lines
SVN rev 186327 on 2008-12-19 16:03:20Z by kib

MFC r185765, r185766:
Make two style changes to create new commit and document proper commit
message for r185765.
Commit message for r185765 should be:
In procfs map handler, and in linprocfs maps handler, do not call
vn_fullpath() while having vm map locked. This is done in anticipation
of the vop_vptocnp commit, that would make vn_fullpath sometime
acquire vnode lock.

Also, in linprocfs, maps handler already acquires vnode lock.

MFC r185864:
Relock user map earlier, to have the lock held when break leaves the
loop earlier due to sbuf error.

Approved by:	re (kensmith)

Revision 1.40.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 19 15:32:48 2008 UTC (3 years, 1 month ago) by kib
Branches: RELENG_7
Diff to: previous 1.40.2.2: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.2: +8 -1 lines
SVN rev 186325 on 2008-12-19 15:32:48Z by kib

MFC r185984:
Reference the vmspace of the process being inspected by procfs, linprocfs
and sysctl kern_proc_vmmap handlers.

Approved by:	re (kensmith)

Revision 1.40.2.2: download - view: text, markup, annotated - select for diffs
Fri Dec 19 15:04:26 2008 UTC (3 years, 1 month ago) by kib
Branches: RELENG_7
Diff to: previous 1.40.2.1: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.2.1: +29 -11 lines
SVN rev 186323 on 2008-12-19 15:04:26Z by kib

MFC r185765, r185766:
Make two style changes to create new commit and document proper commit
message for r185765.
Commit message for r185765 should be:
In procfs map handler, and in linprocfs maps handler, do not call
vn_fullpath() while having vm map locked. This is done in anticipation
of the vop_vptocnp commit, that would make vn_fullpath sometime
acquire vnode lock.

Also, in linprocfs, maps handler already acquires vnode lock.

MFC r185864:
Relock user map earlier, to have the lock held when break leaves the
loop earlier due to sbuf error.

Approved by:	re (kensmith)

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Dec 12 12:12:36 2008 UTC (3 years, 1 month ago) by kib
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +8 -1 lines
SVN rev 185984 on 2008-12-12 12:12:36Z by kib

Reference the vmspace of the process being inspected by procfs, linprocfs
and sysctl kern_proc_vmmap handlers.

Reported and tested by:	pho
Reviewed by:	rwatson, des
MFC after:	1 week

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Dec 10 16:11:09 2008 UTC (3 years, 2 months ago) by kib
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +1 -2 lines
SVN rev 185864 on 2008-12-10 16:11:09Z by kib

Relock user map earlier, to have the lock held when break leaves the
loop earlier due to sbuf error.

Pointy hat to:	me
Submitted by:	dchagin

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Dec 8 13:15:31 2008 UTC (3 years, 2 months ago) by kib
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -1 lines
SVN rev 185766 on 2008-12-08 13:15:31Z by kib

Make two style changes to create new commit and document proper commit
message for r185765.

Noted by:	rdivacky
Requested by:	des

Commit message for r185765 should be:
In procfs map handler, and in linprocfs maps handler, do not call
vn_fullpath() while having vm map locked. This is done in anticipation
of the vop_vptocnp commit, that would make vn_fullpath sometime
acquire vnode lock.

Also, in linprocfs, maps handler already acquires vnode lock.

No objections from:	des
MFC after:	2 week

Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Dec 8 12:34:52 2008 UTC (3 years, 2 months ago) by kib
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +28 -9 lines
SVN rev 185765 on 2008-12-08 12:34:52Z by kib

Change the linprocfs <pid>/maps and procfs <pid>/map handlers to use
sbuf instead of doing uiomove. This allows for reads from non-zero
offsets to work.

Patch is forward-ported des@' one, and was adopted to current code
by dchagin@ and me.

Reviewed by:	des (linprocfs part)
PR:	kern/101453
MFC after:	1 week

Revision 1.40.2.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
Diff to: previous 1.40.2.1: preferred, colored
Changes since revision 1.40.2.1: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Nov 4 19:04:01 2008 UTC (3 years, 3 months ago) by jhb
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -3 lines
SVN rev 184652 on 2008-11-04 19:04:01Z by jhb

Remove unnecessary locking around vn_fullpath().  The vnode lock for the
vnode in question does not need to be held.  All the data structures used
during the name lookup are protected by the global name cache lock.
Instead, the caller merely needs to ensure a reference is held on the
vnode (such as vhold()) to keep it from being freed.

In the case of procfs' <pid>/file entry, grab the process lock while we
gain a new reference (via vhold()) on p_textvp to fully close races with
execve(2).

For the kern.proc.vmmap sysctl handler, use a shared vnode lock around
the call to VOP_GETATTR() rather than an exclusive lock.

MFC after:	1 month

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 13 13:00:21 2008 UTC (3 years, 3 months ago) by kib
Branches: RELENG_7
CVS tags: RELENG_7_1_BP
Branch point for: RELENG_7_1
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -29 lines
SVN rev 183819 on 2008-10-13 13:00:21Z by kib

MFC r183600:
Change the linprocfs <pid>/maps and procfs <pid>/map handlers to use
sbuf instead of doing uiomove.

Approved by:	re (kensmith)

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Oct 4 14:08:16 2008 UTC (3 years, 4 months ago) by kib
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +7 -29 lines
SVN rev 183600 on 2008-10-04 14:08:16Z by kib

Change the linprocfs <pid>/maps and procfs <pid>/map handlers to use
sbuf instead of doing uiomove. This allows for reads from non-zero
offsets to work.

Patch is forward-ported des@' one, and was adopted to current code
by dchagin@ and me.

Reviewed by:	des (linprocfs part)
PR:	kern/101453
MFC after:	1 week

Revision 1.38.12.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Jan 10 01:10:48 2008 UTC (4 years, 1 month ago) by attilio
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +1 -1 lines
vn_lock() is currently only used with the 'curthread' passed as argument.
Remove this argument and pass curthread directly to underlying
VOP_LOCK1() VFS method. This modify makes the code cleaner and in
particular remove an annoying dependence helping next lockmgr() cleanup.
KPI results, obviously, changed.

Manpage and FreeBSD_version will be updated through further commits.

As a side note, would be valuable to say that next commits will address
a similar cleanup about VFS methods, in particular vop_lock1 and
vop_unlock.

Tested by:	Diego Sardina <siarodx at gmail dot com>,
		Andrea Di Pasquale <whyx dot it at gmail dot com>

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Apr 23 06:12:24 2007 UTC (4 years, 9 months ago) by alc
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +47 -23 lines
Add synchronization.  Eliminate the acquisition and release of Giant.

Reviewed by: tegge

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Apr 15 17:06:09 2007 UTC (4 years, 9 months ago) by des
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -2 lines
Instead of stating GIANT_REQUIRED, just acquire and release Giant where
needed.  This does not make a difference now, but will when procfs is
marked MPSAFE.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Jun 30 07:49:21 2005 UTC (6 years, 7 months ago) by peter
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0, RELENG_6
Branch point for: RELENG_6_4
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +26 -1 lines
Jumbo-commit to enhance 32 bit application support on 64 bit kernels.
This is good enough to be able to run a RELENG_4 gdb binary against
a RELENG_4 application, along with various other tools (eg: 4.x gcore).
We use this at work.

ia32_reg.[ch]: handle the 32 bit register file format, used by ptrace,
	procfs and core dumps.
procfs_*regs.c: vary the format of proc/XXX/*regs depending on the client
	and target application.
procfs_map.c: Don't print a 64 bit value to 32 bit consumers, or their
	sscanf fails.  They expect an unsigned long.
imgact_elf.c: produce a valid 32 bit coredump for 32 bit apps.
sys_process.c: handle 32 bit consumers debugging 32 bit targets.  Note
	that 64 bit consumers can still debug 32 bit targets.

IA64 has got stubs for ia32_reg.c.

Known limitations: a 5.x/6.x gdb uses get/setcontext(), which isn't
implemented in the 32/64 wrapper yet.  We also make a tiny patch to
gdb pacify it over conflicting formats of ld-elf.so.1.

Approved by:	re

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 31 23:25:58 2005 UTC (7 years ago) by imp
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +1 -1 lines
MFC: /*- and related license changes

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Jan 6 18:10:40 2005 UTC (7 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -1 lines
/* -> /*- for copyright notices, minor format tweaks as necessary

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Apr 7 20:46:02 2004 UTC (7 years, 10 months ago) by imp
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3
Branch point for: RELENG_5
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +0 -4 lines
Remove advertising clause from University of California Regent's
license, per letter dated July 22, 1999 and email from Peter Wemm,
Alan Cox and Robert Watson.

Approved by: core, peter, alc, rwatson

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Dec 7 17:40:00 2003 UTC (8 years, 2 months ago) by des
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
Minor whitespace and style issues.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Oct 19 14:33:00 2003 UTC (8 years, 3 months ago) by mux
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +0 -1 lines
Remove debug printf().

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Sep 29 20:53:19 2003 UTC (8 years, 4 months ago) by rwatson
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +16 -2 lines
Add a new column to the procfs map to hold the name of the mapped
file for vnode mappings.  Note that this uses vn_fullpath() and may
be somewhat unreliable, although not too unreliable for shared
libraries.  For non-vnode mappings, just print "-" for the field.

Obtained from:	TrustedBSD Projects
Sponsored by:	DARPA, AFRL, Network Associates Laboratories

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Aug 14 15:26:44 2003 UTC (8 years, 5 months ago) by rwatson
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +6 -0 lines
Add p_candebug() check to access a process map file in procfs; limit
access to map information for processes that you wouldn't otherwise
have debug rights on.

Tested by:	bms

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Dec 4 01:33:12 2001 UTC (10 years, 2 months ago) by des
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +14 -25 lines
Pseudofsize procfs(5).

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Sep 12 08:37:20 2001 UTC (10 years, 5 months ago) by julian
Branches: MAIN
CVS tags: KSE_MILESTONE_2
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -4 lines
KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.

Sorry john! (your next MFC will be a doosie!)

Reviewed by: peter@freebsd.org, dillon@freebsd.org

X-MFC after:    ha ha ha ha

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Jul 4 16:20:08 2001 UTC (10 years, 7 months ago) by dillon
Branches: MAIN
CVS tags: KSE_PRE_MILESTONE_2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -7 lines
With Alfred's permission, remove vm_mtx in favor of a fine-grained approach
(this commit is just the first stage).  Also add various GIANT_ macros to
formalize the removal of Giant, making it easy to test in a more piecemeal
fashion. These macros will allow us to test fine-grained locks to a degree
before removing Giant, and also after, and to remove Giant in a piecemeal
fashion via sysctl's on those subsystems which the authors believe can
operate without Giant.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Jun 6 04:13:11 2001 UTC (10 years, 8 months ago) by tanimura
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +8 -1 lines
Lock VM Giant prior to locking a vm map.

Spotted by:	Daniel Rock <D.Rock@t-online.de>
Tested by:	David Wolfskill <david@catwhisker.org>,
		Sean Eric Fagan <sef@kithrup.com>

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed May 23 09:42:11 2001 UTC (10 years, 8 months ago) by ru
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
- FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION file
  systems were repo-copied from sys/miscfs to sys/fs.

- Renamed the following file systems and their modules:
  fdesc -> fdescfs, portal -> portalfs, union -> unionfs.

- Renamed corresponding kernel options:
  FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS.

- Install header files for the above file systems.

- Removed bogus -I${.CURDIR}/../../sys CFLAGS from userland
  Makefiles.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat May 19 01:28:05 2001 UTC (10 years, 8 months ago) by alfred
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -1 lines
Introduce a global lock for the vm subsystem (vm_mtx).

vm_mtx does not recurse and is required for most low level
vm operations.

faults can not be taken without holding Giant.

Memory subsystems can now call the base page allocators safely.

Almost all atomic ops were removed as they are covered under the
vm mutex.

Alpha and ia64 now need to catch up to i386's trap handlers.

FFS and NFS have been tested, other filesystems will need minor
changes (grabbing the vm lock when twiddling page properties).

Reviewed (partially) by: jake, jhb

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue May 1 08:13:09 2001 UTC (10 years, 9 months ago) by markm
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -2 lines
Undo part of the tangle of having sys/lock.h and sys/mutex.h included in
other "system" header files.

Also help the deprecation of lockmgr.h by making it a sub-include of
sys/lock.h and removing sys/lockmgr.h form kernel .c files.

Sort sys/*.h includes where possible in affected files.

OK'ed by:	bde (with reservations)

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Oct 29 18:09:03 1999 UTC (12 years, 3 months ago) by phk
Branches: MAIN
CVS tags: old_RELENG_4_BP, old_RELENG_4_3_BP, old_RELENG_4_3_0_RELEASE, old_RELENG_4_3, old_RELENG_4_2_0_RELEASE, old_RELENG_4_1_1_RELEASE, old_RELENG_4_1_0_RELEASE, old_RELENG_4_0_0_RELEASE, old_RELENG_4, old_PRE_SMPNG
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -2 lines
useracc() the prequel:

Merge the contents (less some trivial bordering the silly comments)
of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>.  This puts
the #defines for the vm_inherit_t and vm_prot_t types next to their
typedefs.

This paves the road for the commit to follow shortly: change
useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE}
as argument.

Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Sun Sep 5 08:16:52 1999 UTC (12 years, 5 months ago) by peter
Branches: old_RELENG_2_2
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.1: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 29 16:26:52 1999 UTC (12 years, 5 months ago) by peter
Branches: old_RELENG_3
CVS tags: old_RELENG_3_5_0_RELEASE, old_RELENG_3_4_0_RELEASE, old_RELENG_3_3_0_RELEASE
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.1: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Aug 28 00:46:55 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Feb 19 14:25:35 1999 UTC (12 years, 11 months ago) by luoqi
Branches: MAIN
CVS tags: old_PRE_VFS_BIO_NFS_PATCH, old_PRE_SMP_VMSHARE, old_PRE_NEWBUS, old_POST_VFS_BIO_NFS_PATCH, old_POST_SMP_VMSHARE, old_POST_NEWBUS
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
Hide access to vmspace:vm_pmap with inline function vmspace_pmap(). This
is the preparation step for moving pmap storage out of vmspace proper.

Reviewed by:	Alan Cox	<alc@cs.rice.edu>
		Matthew Dillion	<dillon@apollo.backplane.com>

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 8 19:08:13 1999 UTC (13 years ago) by jdp
Branches: old_RELENG_3
CVS tags: old_RELENG_3_2_PAO_BP, old_RELENG_3_2_PAO, old_RELENG_3_2_0_RELEASE, old_RELENG_3_1_0_RELEASE
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
MFC 1.19 -> 1.20:  Fix format mismatches that caused wrong numbers to
come out on the Alpha.  Merge approved by <jkh>.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Feb 7 21:48:21 1999 UTC (13 years ago) by dillon
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
    Remove MAP_ENTRY_IS_A_MAP 'share' maps.  These maps were once used to
    attempt to optimize forks but were essentially given-up on due to
    problems and replaced with an explicit dup of the vm_map_entry structure.
    Prior to the removal, they were entirely unused.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Feb 5 06:18:54 1999 UTC (13 years ago) by jdp
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
Correct a format mismatch on 64-bit architectures.  This should
fix the erroneous values in the procfs "map" file on the Alpha.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Jan 21 08:29:06 1999 UTC (13 years ago) by dillon
Branches: MAIN
CVS tags: old_POST_MATT_SWAPPER
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -6 lines
    This is a rather large commit that encompasses the new swapper,
    changes to the VM system to support the new swapper, VM bug
    fixes, several VM optimizations, and some additional revamping of the
    VM code.  The specific bug fixes will be documented with additional
    forced commits.  This commit is somewhat rough in regards to code
    cleanup issues.

Reviewed by:	"John S. Dyson" <root@dyson.iquest.net>, "David Greenman" <dg@root.com>

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Dec 4 22:54:51 1998 UTC (13 years, 2 months ago) by archie
Branches: MAIN
CVS tags: old_RELENG_3_BP, old_PRE_MATT_SWAPPER
Branch point for: old_RELENG_3
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2 lines
Examine all occurrences of sprintf(), strcat(), and str[n]cpy()
for possible buffer overflow problems. Replaced most sprintf()'s
with snprintf(); for others cases, added terminating NUL bytes where
appropriate, replaced constants like "16" with sizeof(), etc.

These changes include several bug fixes, but most changes are for
maintainability's sake. Any instance where it wasn't "immediately
obvious" that a buffer overflow could not occur was made safer.

Reviewed by:	Bruce Evans <bde@zeta.org.au>
Reviewed by:	Matthew Dillon <dillon@apollo.backplane.com>
Reviewed by:	Mike Spengler <mks@networkcs.com>

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Apr 29 04:28:22 1998 UTC (13 years, 9 months ago) by dyson
Branches: MAIN
CVS tags: old_RELENG_3_0_0_RELEASE, old_PRE_NOBDEV
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +27 -13 lines
Tighten up management of memory and swap space during map allocation,
deallocation cycles.  This should provide a measurable improvement
on swap and memory allocation on loaded systems.  It is unlikely a
complete solution.  Also, provide more map info with procfs.
Chuck Cranor spurred on this improvement.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Feb 6 12:13:41 1998 UTC (14 years ago) by eivind
Branches: MAIN
CVS tags: old_PRE_SOFTUPDATE, old_PRE_DEVFS_SLICE, old_POST_SOFTUPDATE, old_POST_DEVFS_SLICE
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -3 lines
Back out DIAGNOSTIC changes.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Feb 4 22:32:48 1998 UTC (14 years ago) by eivind
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -1 lines
Turn DIAGNOSTIC into a new-style option.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Jan 6 05:19:54 1998 UTC (14 years, 1 month ago) by dyson
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Make our v_usecount vnode reference count work identically to the
original BSD code.  The association between the vnode and the vm_object
no longer includes reference counts.  The major difference is that
vm_object's are no longer freed gratuitiously from the vnode, and so
once an object is created for the vnode, it will last as long as the
vnode does.

When a vnode object reference count is incremented, then the underlying
vnode reference count is incremented also.  The two "objects" are now
more intimately related, and so the interactions are now much less
complex.

When vnodes are now normally placed onto the free queue with an object still
attached.  The rundown of the object happens at vnode rundown time, and
happens with exactly the same filesystem semantics of the original VFS
code.  There is absolutely no need for vnode_pager_uncache and other
travesties like that anymore.

A side-effect of these changes is that SMP locking should be much simpler,
the I/O copyin/copyout optimizations work, NFS should be more ponderable,
and further work on layered filesystems should be less frustrating, because
of the totally coherent management of the vnode objects and vnodes.

Please be careful with your system while running this code, but I would
greatly appreciate feedback as soon a reasonably possible.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Nov 14 22:57:46 1997 UTC (14 years, 2 months ago) by tegge
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
Don't try to obtain an excluive lock on the vm map, since a deadlock might
occur if the process owning the map is wiring pages.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Aug 2 14:32:12 1997 UTC (14 years, 6 months ago) by bde
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -16 lines
Removed unused #includes.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 25 04:54:10 1997 UTC (14 years, 10 months ago) by dyson
Branches: old_RELENG_2_2
CVS tags: old_RELENG_2_2_8_RELEASE, old_RELENG_2_2_7_RELEASE, old_RELENG_2_2_6_RELEASE, old_RELENG_2_2_5_RELEASE, old_RELENG_2_2_2_RELEASE, old_RELENG_2_2_1_RELEASE
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
1.  Fix the vm_page_zero_count accounting.  This should improve the
    performance of the pre-zero loop.
2.  Fix madvise.  It had a myriad of bugs, including the potential
    for system crashes.
3.  Improve vm_map handling.  This is a result of work done by both
    <alc@cs.rice.edu> (Alan Cox) and me.  Earlier versions of the
    map handling code was very unintelligent about map coalescing.
4.  Support a working and closer to POSIX mlock.
5.  A couple of performance enhancements that came along for the ride,
    including changing certain bitfields to flags in vm_map.
6.  Bring procfs up to date with respect to the changes.

This code has been carefully extracted from -current.

Reviewed by:	David Greenman <dg@freebsd.org>

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Mar 24 11:24:41 1997 UTC (14 years, 10 months ago) by bde
Branches: MAIN
CVS tags: old_pre_smp_merge, old_post_smp_merge, old_WOLLMAN_MBUF, old_BP_WOLLMAN_MBUF
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -2 lines
Don't include <sys/ioctl.h> in the kernel.  Stage 1: don't include
it when it is not used.  In most cases, the reasons for including it
went away when the special ioctl headers became self-sufficient.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Feb 22 09:40:28 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -1 lines
Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$.  We are not
ready for it yet.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Feb 10 02:14:17 1997 UTC (15 years ago) by dyson
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -1 lines
This is the kernel Lite/2 commit.  There are some requisite userland
changes, so don't expect to be able to run the kernel as-is (very well)
without the appropriate Lite/2 userland changes.

The system boots and can mount UFS filesystems.

Untested: ext2fs, msdosfs, NFS
Known problems: Incorrect Berkeley ID strings in some files.
		Mount_std mounts will not work until the getfsent
		library routine is changed.

Reviewed by:	various people
Submitted by:	Jeffery Hsu <hsu@freebsd.org>

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jan 16 04:16:22 1997 UTC (15 years ago) by dyson
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
Change the map entry flags from bitfields to bitmasks.  Allows
for some code simplification.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jan 14 06:46:31 1997 UTC (15 years ago) by jkh
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -1 lines
Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Oct 30 03:52:57 1996 UTC (15 years, 3 months ago) by dyson
Branches: MAIN
CVS tags: old_RELENG_2_2_BP, old_RELENG_2_2_0_RELEASE
Branch point for: old_RELENG_2_2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -2 lines
Fix a potential deadlock from the previous commit.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Oct 30 03:45:00 1996 UTC (15 years, 3 months ago) by dyson
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +23 -18 lines
Fix the /proc/???/map file so that it is possible to read an arbitrarily
large process map.  Another commit will follow to fix a problem just found
during this one... Sorry!!! :-(.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jul 27 19:47:04 1996 UTC (15 years, 6 months ago) by dyson
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -2 lines
Modify slightly the output from the map file in /proc.  Now the
executable bit is shown.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jul 27 18:28:10 1996 UTC (15 years, 6 months ago) by dyson
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -2 lines
Under certain circumstances, reading the /proc/*/map file can
crash the system.  Nonexistant objects were not handled correctly.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jun 18 05:15:59 1996 UTC (15 years, 7 months ago) by dyson
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +8 -1 lines
Clean-up the new VM map procfs code, and also add support for executable
format file "etype".  It contains a description of the binary type for
a process.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Jun 17 22:53:27 1996 UTC (15 years, 7 months ago) by dyson
Branches: MAIN
This file is the "meat" of the process address space capability.  If you
would like other things added, just ask!!!  It might be pretty easy to add.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options