summaryrefslogtreecommitdiffstats
path: root/lib/libkvm (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Rework the virtual memory layout on SRMMU systems (sun4d/sun4m) to use a muchmiod2015-03-181-5/+5
| | | | | | | | | | | | | | | | | | | | | lower VM_MIN_KERNEL_ADDRESS, since these systems are not crippled by the Sun-4 MMU hole and have the real 4GB of address space. Kernels running on Sun-4 MMU are not affected and will still be restricted to the existing 128MB of kernel space, with 1GB - 128MB of user space. Kernels running on SRMMU will now provide the low 3GB of address space to userland, and use the top 1GB for the kernel, except when compiled with option SMALL_KERNEL, in which case they will keep Sun-4 style the layout (this is temporary to allow for people to boot bsd.rd to upgrade even when not running 2.10 boot blocks, and will be removed eventually) A consequence of this is that the top of the userland stack is no longer at 0xf0000000. But since nothing in userland uses USRSTACK anymore, this should not be an issue. Tested on sun4c and various sun4m, with physical memory sizes ranging from 32 to 448MB.
* Extend struct kinfo_file a bit for netstat (sync with the kernel).claudio2015-02-112-2/+33
| | | | | Bump minor number because of this. OK guenther@
* Prefer arg != 0 over arg for non-boolean. nitted kettenis@guenther2015-02-111-2/+2
|
* sysctl({CTL_KERN, KERN_FILE, KERN_FILE_BYFILE}) previously requiredguenther2015-02-112-9/+29
| | | | | | | the extra argument to be zero; instead, make it filter on the file type (DTYPE_*) when non-zero to make claudio's netstat work easier. ok claudio@
* typomiod2015-02-091-2/+2
|
* Move to the <limits.h> universe.deraadt2015-01-163-7/+8
| | | | review by millert, binary checking process with doug, concept with guenther
* Cleanup some macros and #defines in i386 pmap. Previously committed andmlarkin2015-01-091-1/+10
| | | | | | backed out because of libkvm breakage, recommitting now with libkvm fix. ok deraadt@
* include lock.h, needed for later headers but currently included by magictedu2014-12-162-2/+4
| | | | ok millert
* Nuke yet more obvious #include duplications.krw2014-11-191-2/+1
| | | | ok deraadt@
* Nuke some obvious #include duplications.krw2014-11-181-2/+1
| | | | ok espie@ deraadt@ millert@ tedu@
* udf needs siphash to build.dlg2014-11-181-1/+3
| | | | i dont know if this is the right fix, but the tree needs to build.
* Put the socket splicing fields into a seperate struct sosplice thatbluhm2014-11-031-6/+14
| | | | | | | gets only allocated when needed. This way struct socket shrinks from 472 to 392 bytes on amd64. When splicing gets active, another 88 bytes are allocated for struct sosplice. OK dlg@
* Remove unnecessary netinet/in_systm.h include.lteo2014-10-251-2/+1
| | | | ok millert@
* Don't leak the old data if _kvm_reallocarray() failsguenther2014-10-221-3/+5
| | | | ok millert@ doug@
* Apply reallocarray() idiom.deraadt2014-10-154-21/+23
| | | | ok guenther
* Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)guenther2014-08-151-34/+32
| | | | | | | on it, simplifying error checking, reducing system calls, and improving thread-safety for libraries. ok miod@
* the one userland file which wants uvmexp snooped via kmem, gets to use thederaadt2014-07-111-1/+2
| | | | | | special rule that sys/sysctl.h gets it. mips64 always wanted special treatment. found by todd
* sys/user.h can now be substantially gutted.deraadt2014-07-081-2/+4
| | | | ok guenther
* Track whether a process is a zombie or not yet fully built via flagsguenther2014-07-043-43/+69
| | | | | | | | | | | PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state. Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads. tweaks kettenis@ feedback and ok matthew@
* Get the vmspace pointer from the process, not the threadguenther2014-05-251-2/+2
|
* Eliminates struct pcred by moving the real and saved ugids intoguenther2014-03-302-23/+10
| | | | | | | | | struct ucred; struct process then directly links to the ucred Based on a discussion at c2k10 or so before noting that FreeBSD and NetBSD did this too. ok matthew@
* Unbreak tree; p_sigacts moved from struct proc to struct processflorian2014-03-221-4/+4
|
* Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingmiod2014-03-181-211/+0
| | | | | | | this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish.
* More crash dump parsing fixes: correct paddr in process info and pidsguenther2014-02-052-14/+13
| | | | | | in file info. Drop some unnecessary casts and unused variables too. ok millert@
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-212-8/+8
|
* Threads can't be zombies, only processes, so change zombproc to zombprocess,guenther2014-01-202-121/+137
| | | | | | | | make it a list of processes, and change P_NOZOMBIE and P_STOPPED from thread flags to process flags. Add allprocess list for the code that just wants to see processes. ok tedu@
* p_textvp moved from struct proc to struct processguenther2014-01-201-4/+4
|
* Mark internal symbols as hidden. This removes symbols from the ABI,guenther2013-11-173-3/+7
| | | | | | | albeit ones no one should be using, so major bump the shlib. ok kettenis@ ports testing by landry@
* _kvm_syserr() is printf-like tooguenther2013-11-161-2/+3
|
* ANSIfy a declarationguenther2013-11-161-3/+2
|
* Prep for hidden visibility: move the vnode/file related functionguenther2013-11-166-12/+54
| | | | | | | | declarations, including _kvm_getftype(), into a new header, kvm_file.h, so that we don't have to pull <sys/vnode.h> into all the .c files. No more extern function declaration in .c files. ok millert@
* Apply format __attribute__ to _kvm_err() and fix the errors that it detects.guenther2013-11-123-43/+57
| | | | | | | Treat failure to KREAD teh pcredd or ucreds to be errors insteading of continuing with bogus data. ok deraadt@ millert@
* a missing prototypesderaadt2013-11-121-1/+6
| | | | and don't act like an unknown vnode type is "ok"
* reduce use of <sys/user.h>deraadt2013-11-0114-28/+16
| | | | ok guenther millert
* - add UNIX-domain socket info to struct kinfo_file2guenther2013-10-229-273/+97
| | | | | | | | | | - convert netstat from kvm_getfiles() to kvm_getfile2() using that - delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major) - rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file and KERN_FILE2 to KERN_FILE. ok deraadt@, millert@ ports scan sthen@
* Remove support for a.out and ecoff. We only do elf now.deraadt2013-10-172-4/+4
| | | | ok miod
* some Bx/Ox conversion;jmc2013-08-142-8/+16
| | | | From: Jan Stary
* Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther2013-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
* KERN_PROC_BYPID --> KERN_FILE_BYPIDguenther2013-08-031-3/+3
| | | | pointed out by Dominique Laigle (dlaigle (at) gmail.com)
* use fancy .In macro for includes. from Jan Klemkow. ok jmc schwarzetedu2013-06-058-31/+31
|
* Avoid using PAGE_SHIFT, PAGE_SIZE, and PAGE_MASK defines, since we alreadyderaadt2013-03-289-34/+32
| | | | | know it from the machine. ok miod
* do not need udf_extern.hderaadt2013-03-231-2/+1
|
* spacesderaadt2013-03-204-8/+8
|
* When non-root asks sysctl for kinfo proc or file requests, do not fill inderaadt2013-03-201-3/+3
| | | | | any kernel addresses information. ok guenther
* No longer need the "miniproc" glue, as we only have kinfo_proc now.guenther2013-01-141-40/+13
| | | | ok deraadt@ pirofti@ kettenis@
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-052-6/+2
| | | | ok guenther millert kettenis
* Fix pid matching on kernel crashdumps in kvm_getprocs(KERN_PROC_PID)guenther2012-11-121-2/+2
|
* knowledge of nnpfs can be removedderaadt2012-08-231-26/+1
|
* remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan2012-08-021-2/+1
| | | | ok guenther@
* Use the PAGE_* forms (instead of the ancient BSD forms) in param.h,deraadt2012-07-094-19/+19
| | | | | | | because param.h will get a kick in the head sometime in the future. One day, maybe both can become invisible, but we boot one of them first. ok guenter