document kvm_open*() support for live vkernels
teach libkvm about vkernelsAdd support for accessing a running vkernel's memory byreading its /proc/$pid/mem file.
Clean up #include's in the SYNOPSIS.
Remove remaining LIBC_SCCS related stuff.
Add missing .Nm
Add MLINK for kvm_readstr().
* Fix some cases where NULL was used but 0 was meant (and vice versa).* Remove some bogus casts of NULL to (void *).
Don't forget to set internal error message in kvm_nlist().Obtained-from: FreeBSD
Some trivial changes from FreeBSD that allow to use kgdb on /dev/fwmem0.0.It also fixes an obvious typo (vmfd -> pmfd).Dragonfly-bug: <http://bugs.dragonflybsd.org/issue839>Submitted-by: Aggelos
Some trivial changes from FreeBSD that allow to use kgdb on /dev/fwmem0.0.It also fixes an obvious typo (vmfd -> pmfd).Dragonfly-bug: <http://bugs.dragonflybsd.org/issue839>Submitted-by: Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>Obtained-from: FreeBSD
show more ...
Clean up the kvm process code. This is only used when trying to get aprocess list out of a kernel core with 'ps'. Many things had gone stale.Also adjust the code to traverse the new LWP list.
Add '-H', 'nlwp', and 'tid' options to ps(1) to display some LWP data (inspiredfrom FreeBSD options). Clean up the kernel's initialization of the kl_tidfield.Submitted-by: "Nicolas Thery" <nther
Add '-H', 'nlwp', and 'tid' options to ps(1) to display some LWP data (inspiredfrom FreeBSD options). Clean up the kernel's initialization of the kl_tidfield.Submitted-by: "Nicolas Thery" <nthery@gmail.com>
Fix numerous spelling mistakes.
Synchronize libkvm etc, with recent kernel major/minor devicenumbering changes.
Replace NOCDEV with NULL. NOCDEV was ((void *)-1) and as inheritedfrom *BSD a long time ago due to the device pointer / device numberduality. Now that the pointer and device number has been separ
Replace NOCDEV with NULL. NOCDEV was ((void *)-1) and as inheritedfrom *BSD a long time ago due to the device pointer / device numberduality. Now that the pointer and device number has been separated, wecan just use NULL to indicate no-pointer.Replace si_refs with si_sysref. Use SYSREF for ref-count cdev_t. Enablecdev_t reclamation on deletion.
When <sys/user.h> is included, it MUST be included first because it setsa preprocessor variable that effects other header files.
1:1 Userland threading stage 2.15/4:Drop P_ZOMBIE and make SZOMB a real state again.
1:1 Userland threading stage 2.12/4:Factor out lwp_stat and move P_STOPPED into p_stat.Reviewed-by: Thomas E. Spanjaard <tgen@netphreax.net>
Change kinfo_proc interface between kernel and userland.Before, we were embedding a struct proc (among others) into structkinfo_proc. Every time we change implementation details in the kernel,us
Change kinfo_proc interface between kernel and userland.Before, we were embedding a struct proc (among others) into structkinfo_proc. Every time we change implementation details in the kernel,userland has to be adapted (recompiled). In preparation for the comingLWP changes this interface has been reworked. Now kinfo_proc is astructure which does not depend on other structures on the kernel whichare subject to change. Instead, the routines fill_kinfo_proc andfill_kinfo_lwp copy all values which are of interest between the kernelstructure and the stable kinfo_proc structure.Furthermore, this change adds infrastructure to export LWP-specific data.If userland requests LWP data, it sets the flag KERN_PROC_FLAG_LWP in thesysctl oid. This leads to multiple kinfo_procs being exported. If notset, the first LWP will used. This is like FreeBSD do it, and it seemseasy and simple. Note that userland was not yet adjusted to actuallyrequest LWPs and aggregate this information if necessary. Besides, thekernel does not yet have more than one LWP per process anyways.This introduces a new file, kern/kern_kinfo.c, which is shared betweenkernel and libkvm. This was done to avoid and remove code duplication.Now kvm_getprocs constructs a complete struct proc, including pointers,and then calls fill_kinfo_proc to do its job.In-collaboration-with: Thomas E. Spanjaard <tgen@netphreax.net>
Adjust for symbol name changes.Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
Remove DEC Alpha support.
Change the kernel dev_t, representing a pointer to a specinfo structure,to cdev_t. Change struct specinfo to struct cdev. The name 'cdev' was takenfrom FreeBSD. Remove the dev_t shim for the ker
Change the kernel dev_t, representing a pointer to a specinfo structure,to cdev_t. Change struct specinfo to struct cdev. The name 'cdev' was takenfrom FreeBSD. Remove the dev_t shim for the kernel.This commit generally removes the overloading of 'dev_t' between userland andthe kernel.Also fix a bug in libkvm where a kernel dev_t (now cdev_t) was not beingproperly converted to a userland dev_t.
- Uniformly use .In for header file references.- Fix numerous wrong directory names.
Cleanup the copyright in this file. Easy since its my code.Requested-by: joerg@britannica.bec.de
Sweep-fix man page section order to match mdoc(7), part 2/5.Note: I haven't touched the few man pages that are still using the old man(7) macros. They will be converted to mdoc later.
Add kvm_readstr, a convenience helper which lets you read C strings fromkernel cores/kmem.
12345