summaryrefslogtreecommitdiffstats
path: root/lib/libkvm (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add msdosfs support now that we have the headers.millert2009-06-201-40/+59
|
* Quiet a gcc warningmillert2009-06-191-4/+4
|
* add missing headers needed by free(), memset(), getuid() and strlcpy().chl2009-06-111-2/+5
| | | | ok millert@
* Define _KERNEL for the bare minimum. We can include sys/proc.hmillert2009-06-071-6/+9
| | | | | normally as long as we define __need_process and use a local definition of struct proclist.
* Avoid including machine/cpu.hmillert2009-06-071-4/+4
|
* Add kvm_getfile2 which uses KERN_FILE2 when possible, fallingmillert2009-06-076-8/+908
| | | | back on kmem grovelling for non-live kernels. OK deraadt@
* Mop up after oga@ and unbreak the tree. The direct uncached map is gone sokettenis2009-03-301-6/+1
| | | | remove the code from libkvm that dealt with it.
* All operation on live kernels uses sysctl interface, there is no reason tomiod2009-01-213-14/+10
| | | | | | access the swap area. Change kvm_open() to no longer require a swap area, and to not consider failure to open() it as fatal. Post-mortem analysis would need an image of the swap area at the time of the crash, anyway.
* Sync _kvm_kvatop with existing pmap code: handle direct mappings andmiod2009-01-021-2/+24
| | | | level 2 large pages.
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-9/+2
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Unbreak build.kettenis2008-03-301-1/+7
|
* Get rid of the silly union for mips pte. No functional change exceptmiod2007-10-181-3/+4
| | | | pmap.h now includes pte.h.
* Make context switching much more MI:art2007-10-101-4/+2
| | | | | | | | | | | | | | | | | | | | - Move the functionality of choosing a process from cpu_switch into a much simpler function: cpu_switchto. Instead of having the locore code walk the run queues, let the MI code choose the process we want to run and only implement the context switching itself in MD code. - Let MD context switching run without worrying about spls or locks. - Instead of having the idle loop implemented with special contexts in MD code, implement one idle proc for each cpu. make the idle loop MI with MD hooks. - Change the proc lists from the old style vax queues to TAILQs. - Change the sleep queue from vax queues to TAILQs. This makes wakeup() go from O(n^2) to O(n) there will be some MD fallout, but it will be fixed shortly. There's also a few cleanups to be done after this. deraadt@, kettenis@ ok
* Bring back Mickey's UVM anon change. Testing by thib@, beck@ andpedro2007-06-181-3/+3
| | | | ckuethe@ for a while. Okay beck@, "it is good timing" deraadt@.
* convert to new .Dd format;jmc2007-05-319-18/+18
|
* Kernel crash dump support for arm-based platform, with minimal support inmiod2007-05-191-7/+65
| | | | | libkvm, but all the necessary information for a complete _kvm_kvatop() is available in the crash dump.
* Enable support for > 512MB of physical memory on mips64 systems, by usingmiod2007-05-031-13/+23
| | | | | | | | | | | | XKPHYS instead of KSEG[01] for direct mappings. Then, detect memory above 256MB on O2 by poking at the CRIME registers (ARCbios will not report memory above 256MB, which is mapped above 1GB physical, to the system), and add it to the UVM managed memory. Tested on r5k, rm5200 and r10k with and without more than 256MB, matching hinv reports in all cases. CRIME memory decoding based on a diff from kettenis@ in december 2005.
* hide struct process from userland, allow kvm_proc to see it.espie2007-04-141-2/+3
| | | | okay miod@
* move p_limit and p_cred into struct processtedu2007-04-121-4/+9
| | | | | leave macros behind for now to keep the commit small ok art beck miod pedro
* Kernel crash dumps and associated libkvm bits for landisk.miod2007-03-031-29/+115
|
* Revert PAE pmap for now, until the strange bug is found. This stopstom2007-02-202-57/+26
| | | | | | | | | | the freezes many of us are seeing (especially on amd64 machines running OpenBSD/i386). Much testing by nick@ (as always - thanks!), hugh@, ian@, kettenis@ and Sam Smith (s (at) msmith (dot) net). Requested by, input from, and ok deraadt@ ok art@, kettenis@, miod@
* the advertising clause on these can safely be removedderaadt2007-01-082-13/+5
|
* Fix cut'n'paste abuse in error message.miod2006-11-291-3/+3
|
* Sync with struct proc change.miod2006-11-291-3/+3
|
* Minimal lip service for savecore to be happy.miod2006-11-061-8/+5
|
* Preliminary userland bits for OpenBSD/landisk, many things coming frommiod2006-10-101-0/+76
| | | | NetBSD.
* Back out the anon change. Apparently it was tested by a few, but most ofderaadt2006-07-131-3/+3
| | | | | us did not see it or get a chance to test it before it was commited. It broke cvs, in the ami driver, making it not succeed at seeing it's devices.
* from netbsd: make anons dynamically allocated from pool.mickey2006-06-211-3/+3
| | | | | | this results in lesse kva waste due to static preallocation of those for every phys page and also every swap page. tested by beck krw miod
* Real kvm routines for vax; allows ``target kvm'' to work in gdb for kernelmiod2006-06-191-50/+29
| | | | | crash dumps. ok kettenis@
* Use the non-generic SEGSHIFT value in the 020/030 specific codepath.miod2006-06-121-3/+3
|
* proper type and ptdsize checks; had it for three weeks now... sighmickey2006-06-091-6/+9
|
* Unbreak. Fix some of the lint warnings that mickey reintroduced.kettenis2006-05-071-16/+17
| | | | ok miod@
* detect page table dir size difference for normal and pae modesmickey2006-04-271-26/+53
| | | | | (4k vs 16k) and use proper physical address types and page table indexing.
* careful cleanup following advice from lint. be very very very carefulderaadt2006-03-315-80/+81
| | | | with sprinkling in size_t!
* ARGSUSED for for a few thingsderaadt2006-03-311-1/+4
|
* lint happiness, mostly avoiding variable aliasingderaadt2006-03-311-9/+9
|
* kvm_openfiles() should take int flag, not unsignedderaadt2006-03-312-5/+5
|
* for some of internal functions use paddr_t where phys addr is intended insteadd of u_long; miod@ okmickey2006-03-2014-47/+48
|
* Prevent double-free.kettenis2006-03-141-8/+10
| | | | ok mickey@, todd@, deraadt@
* use WANTLINT= (on all architectures)deraadt2005-11-241-1/+2
|
* Use queue macros instead of directly accessing fields. ok millert@otto2005-10-122-8/+8
|
* add $OpenBSD$ tag. ok miodkevlo2005-01-141-1/+1
|
* .{N,O}x fixes;jmc2004-11-221-2/+2
|
* Kill (almost all) warnings.miod2004-09-1510-17/+27
|
* KVM_NO_FILES is 0x80000000, so arg 4 of kvm_openfiles() must be unsignedderaadt2004-09-142-5/+5
| | | | int instead of int; millert ok
* free memory allocated by kvm_getproc2() in kvm_close()jaredy2004-08-111-2/+4
| | | | ok deraadt@ millert@
* wrong filenamederaadt2004-08-061-2/+2
|
* ansideraadt2004-08-061-16/+9
|
* mips alive againpefo2004-08-061-0/+175
|
* - fix includes needed to compilejaredy2004-08-051-13/+21
| | | | | | | | - mdoc and macro fixes - sync to reality - mention where the kinfo_proc type definition can be found ok millert jmc