#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
312252 |
|
16-Jan-2017 |
pfg |
MFC r311101: libkvm - extend a bit the swap statistics field.
Change ksw_used and ksw_total to unsigned, which increases the maximum total swap that can be displayed properly from ~8TB to ~16TB.
Obtained from: DragonflyBSD (ecc2e461)
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
298840 |
|
30-Apr-2016 |
ngie |
Remove kvm_getfiles(3)
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
|
#
291406 |
|
27-Nov-2015 |
jhb |
Add support to libkvm for reading vmcores from other architectures. - 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
|
#
261805 |
|
12-Feb-2014 |
glebius |
Add kvm_getncpus() to obtain mp_ncpus.
Sponsored by: Nginx, Inc.
|
#
261796 |
|
12-Feb-2014 |
glebius |
While it isn't too late and kvm_read_zpcpu() function isn't yet used outside libkvm(3), change its order of arguments, so that it is the same as in kvm_read().
Sponsored by: Nginx, Inc.
|
#
253167 |
|
10-Jul-2013 |
trociny |
In r227839, when removing libkvm dependency on procfs(5), kvm_uread() function, used for reading from /proc/pid/mem, was removed too. But the function declaration remained in kvm.h public header and the soname was not bumped.
Remove kvm_uread() from kvm.h and bump the soname.
Reported by: rmh Discussed on: arch
|
#
249355 |
|
11-Apr-2013 |
glebius |
Include types.h for C99 uintXX_t types.
|
#
249344 |
|
10-Apr-2013 |
glebius |
o Provide function kvm_read_zpcpu() to access UMA_ZONE_PCPU allocations. o Provide function kvm_counter_u64_fetch() to fetch valut of a counter(9).
Sponsored by: Nginx, Inc.
|
#
217744 |
|
23-Jan-2011 |
uqs |
libkvm code janitoring
- make WARNS=6 clean for archs w/o strict alignment requirments - add const, ANSIfy, remove unused vars, cast types for comparison - thanks to differing definitions of VM_MIN_ADDRESS across our archs, we need to trick the compiler to not complain about signedness. We could either fix VM_MIN_ADDRESS to always be a simple integer or make the check conditional on $ARCH.
Closes PRs: kern/42386, kern/83364 Reviewed by: bde
|
#
204511 |
|
01-Mar-2010 |
rwatson |
Not all programs including kvm.h include the necessary headers to use u_int, so prefer unsigned int.
MFC after: 6 days Pointed out by: bz, kib, Mr Tinderbox
|
#
204494 |
|
28-Feb-2010 |
rwatson |
A first cut at teaching libkvm how to deal with dynamic per-CPU storage (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.
|
#
181880 |
|
19-Aug-2008 |
jhb |
Add a new routine kvm_getcptime(3) for fetching the equivalent of '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
|
#
181876 |
|
19-Aug-2008 |
jhb |
Add two new routines to libkvm for working with per-CPU data: kvm_getmaxcpu() and kvm_getpcpu().
MFC after: 1 week
|
#
165888 |
|
08-Jan-2007 |
imp |
Remove the advertising clause. UCB did this some time ago, but these files were never updated to reflect that.
MFC After: 2 days
|
#
121060 |
|
13-Oct-2003 |
bde |
Fixed some style bugs in the removal of __P(()). Blind removal of spaces before __P(()) outdented continuation lines to column 0.
|
#
118280 |
|
31-Jul-2003 |
phk |
Retire the SWIF_DUMP_TREE code, this is in the way for a rework of the swap_pager layout.
|
#
102227 |
|
21-Aug-2002 |
mike |
o Merge <machine/ansi.h> and <machine/types.h> into a new header 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
|
#
92917 |
|
21-Mar-2002 |
obrien |
Remove __P() usage.
|
#
69896 |
|
12-Dec-2000 |
mckusick |
Change the proc information returned from the kernel so that it 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.
|
#
50473 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
45525 |
|
10-Apr-1999 |
bde |
Oops, the previous log message should have been:
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.
|
#
45513 |
|
09-Apr-1999 |
bde |
Declare mkstemps().
|
#
43282 |
|
27-Jan-1999 |
bde |
Removed evil typedef kvm_swap_t and all uses of it (not many).
Hoped for by: wollman
|
#
43085 |
|
23-Jan-1999 |
dillon |
Oops, forgot this. Needed by libkvm.
|
#
41882 |
|
16-Dec-1998 |
bde |
Declare size_t and ssize_t if they are not already declared, so that <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().
|
#
39353 |
|
16-Sep-1998 |
dfr |
Adjust the declarations of kvm_read and kvm_write to match reality a little closer.
|
#
7189 |
|
20-Mar-1995 |
rgrimes |
Comment out declaration of kvm_uread until it can be fixed correctly.
|
#
7188 |
|
20-Mar-1995 |
rgrimes |
Change u_long to unsigned long to be consistent.
|
#
7167 |
|
19-Mar-1995 |
joerg |
libkvm exports kvm_uread(), so do declare it in the header file. Got apparent by Philippe's -Wall patch for /usr/bin.
|
#
1539 |
|
24-May-1994 |
rgrimes |
BSD 4.4 Lite Include Sources
|