summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm.h
Commit message (Collapse)AuthorAgeFilesLines
* Not all programs including kvm.h include the necessary headers to userwatson2010-03-011-1/+1
| | | | | | | u_int, so prefer unsigned int. MFC after: 6 days Pointed out by: bz, kib, Mr Tinderbox
* 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.
* Add a new routine kvm_getcptime(3) for fetching the equivalent ofjhb2008-08-191-0/+1
| | | | | | | | | | '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-0/+2
| | | | | | kvm_getmaxcpu() and kvm_getpcpu(). MFC after: 1 week
* Remove the advertising clause. UCB did this some time ago, but theseimp2007-01-081-4/+0
| | | | | | files were never updated to reflect that. MFC After: 2 days
* Fixed some style bugs in the removal of __P(()). Blind removal ofbde2003-10-131-3/+3
| | | | spaces before __P(()) outdented continuation lines to column 0.
* Retire the SWIF_DUMP_TREE code, this is in the way for a rework ofphk2003-07-311-1/+0
| | | | the swap_pager layout.
* o Merge <machine/ansi.h> and <machine/types.h> into a new headermike2002-08-211-7/+7
| | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien
* Remove __P() usage.obrien2002-03-211-14/+14
|
* Change the proc information returned from the kernel so that itmckusick2000-12-121-1/+1
| | | | | | | | | | | | no longer contains kernel specific data structures, but rather only scalar values and structures that are already part of the kernel/user interface, specifically rusage and rtprio. It no longer contains proc, session, pcred, ucred, procsig, vmspace, pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If any of these changed in size, ps, w, fstat, gcore, systat, and top would all stop working. The new structure has over 200 bytes of unassigned space for future values to be added, yet is nearly 100 bytes smaller per entry than the structure that it replaced.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Oops, the previous log message should have been:bde1999-04-101-1/+1
| | | | | | | | Include <machine/ansi.h> so that this file is self-sufficient again. Rev.1.6 doesn't do this as claimed unless <nlist.h> has nonstandard pollution. Cleaned up includes.
* Declare mkstemps().bde1999-04-091-4/+5
|
* Removed evil typedef kvm_swap_t and all uses of it (not many).bde1999-01-271-5/+5
| | | | Hoped for by: wollman
* Oops, forgot this. Needed by libkvm.dillon1999-01-231-1/+14
|
* Declare size_t and ssize_t if they are not already declared, so thatbde1998-12-161-6/+15
| | | | | | | | | | | | | | | <kvm.h> is self-sufficient again. Moved typedefs and forward struct declarations out of __BEGIN_DECLS/ __END_DECLS. Don't comment out the prototype for kvm_uread(). This was a 4 year old kludge for previous breakage of self-sufficiency. The prototypwe was broken instead. Fixed bitrot (const poisoning) in the type of kvm_uread(). Fixed order of the declaration of kvm_uread().
* Adjust the declarations of kvm_read and kvm_write to match reality a littledfr1998-09-161-2/+2
| | | | closer.
* Comment out declaration of kvm_uread until it can be fixed correctly.rgrimes1995-03-201-0/+2
|
* Change u_long to unsigned long to be consistent.rgrimes1995-03-201-1/+2
|
* libkvm exports kvm_uread(), so do declare it in the header file.joerg1995-03-191-0/+1
| | | | Got apparent by Philippe's -Wall patch for /usr/bin.
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+69
OpenPOWER on IntegriCloud