summaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm_proc.c
AgeCommit message (Collapse)Author
2009-01-21All operation on live kernels uses sysctl interface, there is no reason toMiod Vallat
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.
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2007-10-10Make context switching much more MI:Artur Grabowski
- 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
2007-06-18Bring back Mickey's UVM anon change. Testing by thib@, beck@ andPedro Martelletto
ckuethe@ for a while. Okay beck@, "it is good timing" deraadt@.
2007-04-14hide struct process from userland, allow kvm_proc to see it.Marc Espie
okay miod@
2007-04-12move p_limit and p_cred into struct processTed Unangst
leave macros behind for now to keep the commit small ok art beck miod pedro
2006-11-29Sync with struct proc change.Miod Vallat
2006-07-13Back out the anon change. Apparently it was tested by a few, but most ofTheo de Raadt
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.
2006-06-21from netbsd: make anons dynamically allocated from pool.Michael Shalayeff
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
2006-03-31careful cleanup following advice from lint. be very very very carefulTheo de Raadt
with sprinkling in size_t!
2005-10-12Use queue macros instead of directly accessing fields. ok millert@Otto Moerbeek
2004-06-24Back out part of last commit; we want to realloc + loop for argv too.Todd C. Miller
2004-06-24Allocate 8 pages for process argv, not one. This should really be ARG_MAXTodd C. Miller
but sysctl_proc_args() needs changes to support that.
2004-06-15knf; ok millertTheo de Raadt
2004-06-14Zero p_schedflags in struct struct kinfo_proc2 for the non-sysctl case.Todd C. Miller
2004-06-13temporary tree building workaround until millert shows upTheo de Raadt
2004-01-07Sync PTRTOINT64 w/ kernel version and remove some unused vars.Todd C. Miller
2004-01-07Implement kvm_getproc2(), kvm_getargv2() and kvm_getenvv2() that useTodd C. Miller
the KERN_PROC2 sysctl. Based on changes from NetBSD but uses our own kvm_arg_sysctl().
2003-11-17Zero nlist array before using; fixes a bug in the error conditionTodd C. Miller
when the corefile is not a valid executable. otto@ OK
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-06-20Redo the logic in kvm_arg_sysctl for resizing the buffer.Artur Grabowski
- actually use the value we've just reallocated. - Don't return success just because the error wasn't ENOMEM (doh!).
2002-06-08If possible get arg and env information with sysctl.Artur Grabowski
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-12-13Reorder new includes. art@ says ok.Hugh Graham
2001-12-05Must include machine/pmap.h and machine/vmparam.h here nowArtur Grabowski
that uvm headers won't do that for us.
2001-11-06Adapt to new uvm/ includes.Artur Grabowski
2001-11-05No need to pull in vm/vm_param.h in any of these files.Artur Grabowski
2001-06-27UVM is no longer an optionArtur Grabowski
2001-05-18Convert lseek/{read,write} pairs into pread and pwrite.Artur Grabowski
from my todo list, work by Jonathon Fletcher <jonathon.fletcher@pobox.com>.
2000-06-18Mark kernel threads as system processes. Make ps hide them by default,Niklas Hallqvist
show them with -k. Do not try to show RSS based values for them as they mess up column alignment. vmstat -f now shows kernel threads separately from rforks too.
1999-06-22UVM support + some cleanupArtur Grabowski
1997-02-26Switch alpha from libkvm.old to libkvm with code from NetBSD.Niklas Hallqvist
%x -> %lx format fixes from me.
1996-10-23use psstrings sysctlTheo de Raadt
1996-05-05sync with 0430Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt