summaryrefslogtreecommitdiff
path: root/sys/kern/kern_proc.c
Commit message (Collapse)AuthorAgeFilesLines
* Staticized.Bruce Evans1998-02-201-3/+3
| | | | | | | Don't depend on "implicit int". Notes: svn path=/head/; revision=33680
* Staticize.Eivind Eklund1998-02-091-2/+2
| | | | Notes: svn path=/head/; revision=33181
* Back out DIAGNOSTIC changes.Eivind Eklund1998-02-061-3/+1
| | | | Notes: svn path=/head/; revision=33134
* Turn DIAGNOSTIC into a new-style option.Eivind Eklund1998-02-041-1/+3
| | | | Notes: svn path=/head/; revision=33108
* Return the vm_map in the eproc structure, so we can support more accurateJohn Dyson1998-02-021-1/+2
| | | | | | | VSZ display in PS. Notes: svn path=/head/; revision=33009
* VM level code cleanups.John Dyson1998-01-221-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Start using TSM. Struct procs continue to point to upages structure, after being freed. Struct vmspace continues to point to pte object and kva space for kstack. u_map is now superfluous. 2) vm_map's don't need to be reference counted. They always exist either in the kernel or in a vmspace. The vmspaces are managed by reference counts. 3) Remove the "wired" vm_map nonsense. 4) No need to keep a cache of kernel stack kva's. 5) Get rid of strange looking ++var, and change to var++. 6) Change more data structures to use our "zone" allocator. Added struct proc, struct vmspace and struct vnode. This saves a significant amount of kva space and physical memory. Additionally, this enables TSM for the zone managed memory. 7) Keep ioopt disabled for now. 8) Remove the now bogus "single use" map concept. 9) Use generation counts or id's for data structures residing in TSM, where it allows us to avoid unneeded restart overhead during traversals, where blocking might occur. 10) Account better for memory deficits, so the pageout daemon will be able to make enough memory available (experimental.) 11) Fix some vnode locking problems. (From Tor, I think.) 12) Add a check in ufs_lookup, to avoid lots of unneeded calls to bcmp. (experimental.) 13) Significantly shrink, cleanup, and make slightly faster the vm_fault.c code. Use generation counts, get rid of unneded collpase operations, and clean up the cluster code. 14) Make vm_zone more suitable for TSM. This commit is partially as a result of discussions and contributions from other people, including DG, Tor Egge, PHK, and probably others that I have forgotten to attribute (so let me know, if I forgot.) This is not the infamous, final cleanup of the vnode stuff, but a necessary step. Vnode mgmt should be correct, but things might still change, and there is still some missing stuff (like ioopt, and physical backing of non-merged cache files, debugging of layering concepts.) Notes: svn path=/head/; revision=32702
* Last major round (Unless Bruce thinks of somthing :-) of malloc changes.Poul-Henning Kamp1997-10-121-2/+5
| | | | | | | | | | | Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde Notes: svn path=/head/; revision=30354
* Distribute and statizice a lot of the malloc M_* types.Poul-Henning Kamp1997-10-111-1/+3
| | | | | | | Substantial input from: bde Notes: svn path=/head/; revision=30309
* Removed unused #includes.Bruce Evans1997-08-021-10/+1
| | | | Notes: svn path=/head/; revision=27845
* Fill in some extra fields in the eproc structure. gdb uses this informationTor Egge1997-06-271-1/+5
| | | | | | | | to determine where the data segment in core dumps should be mapped. Reviewed by: Peter Wemm <peter@spinner.dialix.com.au> Notes: svn path=/head/; revision=26991
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includeBruce Evans1997-03-241-2/+1
| | | | | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient. Notes: svn path=/head/; revision=24203
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* This is the kernel Lite/2 commit. There are some requisite userlandJohn Dyson1997-02-101-1/+1
| | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=22521
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Attached simple external ddb commands `show rtc', `show pgrpdump'Bruce Evans1996-09-141-8/+7
| | | | | | | | and `show cbstat'. The pgrpdump code was previously controlled by `#ifdef DEBUG'. Notes: svn path=/head/; revision=18297
* Quiet a couple of -Wunused warnings.Garrett Wollman1996-07-091-1/+3
| | | | Notes: svn path=/head/; revision=17040
* Clean up -Wunused warnings.Gary Palmer1996-06-121-3/+3
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=16322
* Fix the same problem that davidg fixed in -stable some days ago andPoul-Henning Kamp1996-06-061-62/+115
| | | | | | | restructure sysctl stuff a bit. KERN_PROC_PID now uses pfind(). Notes: svn path=/head/; revision=16160
* Fix a panic caused by (proc)->p_session being dereferenced for a processDavid Greenman1996-05-301-8/+10
| | | | | | | that was exiting. Notes: svn path=/head/; revision=15985
* Declared pgrpdump() properly.Bruce Evans1996-04-071-1/+3
| | | | Notes: svn path=/head/; revision=15110
* From Lite2: proc LIST changes.Jeffrey Hsu1996-03-111-101/+66
| | | | | | | Reviewed by: david & bde Notes: svn path=/head/; revision=14529
* fill in kinfo_eproc.e_login - otherwise a sysctl to read the eprocs wontPeter Wemm1996-01-011-1/+3
| | | | | | | | get the login names, and "ps -ax -O login" will return an empty column under the login name. Notes: svn path=/head/; revision=13154
* A Major staticize sweep. Generates a couple of warnings that I'll dealPoul-Henning Kamp1995-12-141-5/+5
| | | | | | | | | with later. A number of unused vars removed. A number of unused procs removed or #ifdefed. Notes: svn path=/head/; revision=12819
* Untangled the vm.h include file spaghetti.David Greenman1995-12-071-2/+8
| | | | Notes: svn path=/head/; revision=12662
* Completed function declarations and/or added prototypes.Bruce Evans1995-12-021-3/+3
| | | | Notes: svn path=/head/; revision=12577
* Hmm, I seem to have got all my patches screwed up anyway. Too bad.Poul-Henning Kamp1995-11-141-1/+146
| | | | | | | this is where the proctable stuff went. Notes: svn path=/head/; revision=12281
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-4/+4
| | | | Notes: svn path=/head/; revision=8876
* Cosmetics. related to getting prototypes into view.Poul-Henning Kamp1994-10-101-2/+1
| | | | Notes: svn path=/head/; revision=3485
* Got rid of map.h. It's a leftover from the rmap code, and we use rlists.David Greenman1994-10-091-2/+1
| | | | | | | Changed swapmap into swaplist. Notes: svn path=/head/; revision=3451
* "idle priority" support. Based on code from Henrik Vestergaard Draboel,David Greenman1994-10-021-1/+2
| | | | | | | but substantially rewritten by me. Notes: svn path=/head/; revision=3291
* While in the real world, I had a bad case of being swapped out for a lot ofPoul-Henning Kamp1994-09-251-3/+4
| | | | | | | | | | | cycles. While waiting there I added a lot of the extra ()'s I have, (I have never used LISP to any extent). So I compiled the kernel with -Wall and shut up a lot of "suggest you add ()'s", removed a bunch of unused var's and added a couple of declarations here and there. Having a lap-top is highly recommended. My kernel still runs, yell at me if you kernel breaks. Notes: svn path=/head/; revision=3098
* Realtime priority scheduling support.David Greenman1994-09-011-1/+4
| | | | | | | Submitted by: Henrik Vestergaard Draboel Notes: svn path=/head/; revision=2441
* Fix up some sloppy coding practices:Garrett Wollman1994-08-181-1/+4
| | | | | | | | | | | | | | | - Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter. Notes: svn path=/head/; revision=2112
* Added $Id$David Greenman1994-08-021-0/+1
| | | | Notes: svn path=/head/; revision=1817
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.Rodney W. Grimes1994-05-251-0/+9
| | | | | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman Notes: svn path=/head/; revision=1549
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-241-0/+401
Notes: svn path=/head/; revision=1541