summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* A first cut at teaching libkvm how to deal with dynamic per-CPU storagerwatson2010-03-011-0/+1
| | | | | | | | | | | | | | | | | (DPCPU): A new API, kvm_dpcpu_setcpu(3), selects the active CPU for the purposes of DPCPU. Calls to kvm_nlist(3) will automatically translate DPCPU symbols and return a pointer to the current CPU's version of the data. Consumers needing to read the same symbol on several CPUs will invoke a series of setcpu/nlist calls, one per CPU of interest. This addition makes it possible for tools like netstat(1) to query the values of DPCPU variables during crashdump analysis, and is based on similar code handling virtualized global variables. MFC after: 1 week Sponsored by: Juniper Networks, Inc.
* Build lib/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
* Make libkvm work on live systems and crashdumps with andbz2009-07-231-1/+1
| | | | | | | | | | | | | | | | | | without VIMAGE virtualization in the kernel. If we cannot resolve a symbol try to see if we can find it with prefix of the virtualized subsystem, currently only "vnet_entry" by identifying either the vnet of the current process for a live system or the vnet of proc0 (or of dumptid if compiled in a non-default way). The way this is done currently allows us to only touch libkvm but no single application. Once we are going to virtualize more subsystems we will have to review this decision for better scaling. Submitted by: rwatson (initial version of kvm_vnet.c, lots of ideas) Reviewed by: rwatson Approved by: re (kib)
* Support kernel crash mini dumps on ARM architecture.raj2008-11-061-1/+1
| | | | Obtained from: Juniper Networks, Semihalf
* Add a new routine kvm_getcptime(3) for fetching the equivalent ofjhb2008-08-191-3/+4
| | | | | | | | | | 'kern.cp_time'. For a live kernel it uses the sysctl. For a crashdump, it first checks to see if the kernel has a 'cp_time' global symbol. If it does, it uses that. If that doesn't work, when it uses the recently added kvm_getmaxcpu(3) and kvm_getpcpu(3) routines to walk all the CPUs and sum up their counters. MFC after: 1 week
* Add two new routines to libkvm for working with per-CPU data:jhb2008-08-191-3/+4
| | | | | | kvm_getmaxcpu() and kvm_getpcpu(). MFC after: 1 week
* unbreak build for sparc64 etc.kmacy2006-10-091-1/+2
| | | | | | | TARGET won't be defined on non subarches Approved by: rwatson (mentor) Reviewed by: jmg
* buildworld fixes for sun4vkmacy2006-10-091-0/+4
| | | | | | | not sure why pmap.c is included as it is unchanged Approved by: rwatson (mentor) Reviewed by: jmg
* Teach libkvm how to read minidumps. It turns out that minidumps arepeter2006-04-211-0/+3
| | | | | | | | | | | | | | far more convenient for libkvm to work with because of the page table block at the beginning. As a result, the MD code is smaller. libkvm will automatically detect old vs mini dumps on i386 and amd64. libkvm will handle i386 PAE and non-PAE modes. There is a PAE flag in the i386 minidump header to signal the width of the entries in the page table block. Other convenient values are also present, such as kernbase and the direct map addresses on amd64.
* style.Makefile(5)obrien2003-08-181-1/+1
|
* Stage 3 of dynamic root support. Make all the libraries needed to rungordon2003-08-171-0/+1
| | | | | | binaries in /bin and /sbin installed in /lib. Only the versioned files reside in /lib, the .so symlink continues to live /usr/lib so the toolchain doesn't need to be modified.
* Removed -I${.CURDIR}/.../sys from CFLAGS.ru2001-05-181-1/+1
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Find <libkvm.h> in the source tree. This helps standalone builds.peter2001-03-211-1/+1
|
* Replace beforeinstall target with new variables used by .mk system.rgrimes2000-01-141-4/+1
| | | | Reviewed by: marcel, and make world
* Install <kvm.h> from here (after repo copy) so it's all in one package.peter1999-10-041-0/+5
|
* Fixed unsorting of SRCS and MAN3 in previous commit.bde1999-01-231-4/+4
| | | | Sorted MLINKS.
* Implement kvm_getswapinfo() libkvm function. Will be used bydillon1999-01-221-2/+3
| | | | pstat, top, and systat.
* Change ${MACHINE} into ${MACHINE_ARCH} to support MACHINE=pc98.kato1998-09-091-1/+1
|
* -I${DESTDIR}/sys -> -I${.CURDIR}/../../sys.bde1997-08-261-1/+1
|
* Add ${DESTDIR} in front of absolute path.asami1997-07-181-1/+1
|
* Make it work with our make macros.wollman1994-08-051-2/+2
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+14
OpenPOWER on IntegriCloud