aboutsummaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm.3
Commit message (Collapse)AuthorAgeFilesLines
* Implement kvm_kerndispLeandro Lupori2020-02-061-2/+4
| | | | | | | | | | | | | | | This change adds a new libkvm function, kvm_kerndisp(), that can be used to retrieve the kernel displacement, that is the difference between the kernel's base virtual address at run time and the kernel base virtual address specified in the kernel image file. This will be used by kgdb, to properly relocate kernel symbols, when needed. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D23285 Notes: svn path=/head/; revision=357615
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Remove kvm_getfiles(3)Enji Cooper2016-04-301-2/+1
| | | | | | | | | | | | | | This libcall has been broken since (at least) r174989/8.0-RELEASE. Bump SHLIB_MAJOR for the change Differential Revision: https://reviews.freebsd.org/D6052 Relnotes: yes Reviewed by: jhb, markj Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=298840
* Add support to libkvm for reading vmcores from other architectures.John Baldwin2015-11-271-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a kvaddr_type to represent kernel virtual addresses instead of unsigned long. - Add a struct kvm_nlist which is a stripped down version of struct nlist that uses kvaddr_t for n_value. - Add a kvm_native() routine that returns true if an open kvm descriptor is for a native kernel and memory image. - Add a kvm_open2() function similar to kvm_openfiles(). It drops the unused 'swapfile' argument and adds a new function pointer argument for a symbol resolving function. Native kernels still use _fdnlist() from libc to resolve symbols if a resolver function is not supplied, but cross kernels require a resolver. - Add a kvm_nlist2() function similar to kvm_nlist() except that it uses struct kvm_nlist instead of struct nlist. - Add a kvm_read2() function similar to kvm_read() except that it uses kvaddr_t instead of unsigned long for the kernel virtual address. - Add a new kvm_arch switch of routines needed by a vmcore backend. Each backend is responsible for implementing kvm_read2() for a given vmcore format. - Use libelf to read headers from ELF kernels and cores (except for powerpc cores). - Add internal helper routines for the common page offset hash table used by the minidump backends. - Port all of the existing kvm backends to implement a kvm_arch switch and to be cross-friendly by using private constants instead of ones that vary by platform (e.g. PAGE_SIZE). Static assertions are present when a given backend is compiled natively to ensure the private constants match the real ones. - Enable all of the existing vmcore backends on all platforms. This means that libkvm on any platform should be able to perform KVA translation and read data from a vmcore of any platform. Tested on: amd64, i386, sparc64 (marius) Differential Revision: https://reviews.freebsd.org/D3341 Notes: svn path=/head/; revision=291406
* kvm(3): Mention that some of the functions use sysctl(3) instead of kmem.Jilles Tjoelker2010-04-251-2/+6
| | | | | | | | | | | Additionally, because of sysctl(3) use (which is generally good), behaviour for crash dumps differs slightly from behaviour for live kernels and this will probably never be fixed entirely, so weaken that claim. MFC after: 1 week Notes: svn path=/head/; revision=207187
* Remove the advertising clause. UCB did this some time ago, but theseWarner Losh2007-01-081-4/+0
| | | | | | | | | files were never updated to reflect that. MFC After: 2 days Notes: svn path=/head/; revision=165888
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-3/+6
| | | | Notes: svn path=/head/; revision=131504
* Document that libkvm also uses /dev/kmem, to access KVM.Ruslan Ermilov2004-03-261-3/+7
| | | | Notes: svn path=/head/; revision=127438
* The .Fn functionPhilippe Charnier2003-03-241-1/+2
| | | | | | | The .Fa argument Notes: svn path=/head/; revision=112539
* mdoc(7) police: Deal with self-xrefs.Ruslan Ermilov2002-12-241-1/+1
| | | | Notes: svn path=/head/; revision=108257
* Consistently mark std(in|out|err) with .Dv, because that's how theyRuslan Ermilov2002-12-041-1/+3
| | | | | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re Notes: svn path=/head/; revision=107619
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-2/+6
| | | | Notes: svn path=/head/; revision=81622
* Introduce .Lb macro to libkvm manpages.Alexey Zelkin2000-04-221-1/+3
| | | | | | | Use .Pa macro for "enlighting" path Notes: svn path=/head/; revision=59510
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* Fixed missing cross reference to kvm_getfiles.Bruce Evans1999-01-231-0/+1
| | | | | | | | | | This man page may be overdoing the cross references by referencing man pages that are just links to other pages that are referenced. kvm_uread() is still completely undocumented in kvm*.3. Notes: svn path=/head/; revision=43090
* Fixed unsorting of cross references in previous commit.Bruce Evans1999-01-231-1/+1
| | | | Notes: svn path=/head/; revision=43088
* Implement kvm_getswapinfo() libkvm function. Will be used byMatthew Dillon1999-01-221-0/+1
| | | | | | | pstat, top, and systat. Notes: svn path=/head/; revision=43045
* Another round of spelling fixes.Mike Pritchard1996-01-301-2/+2
| | | | Notes: svn path=/head/; revision=13754
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+101
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573