freebsd-skq/lib/libkvm
ngie a5dab3b819 lib/libkvm: start adding basic tests for kvm(3)
- kvm_close: add a testcase to verify support for errno = EINVAL / -1
  (see D10065) when kd == NULL is provided to the libcall.
- kvm_geterr:
-- Add a negative testcase for kd == NULL returning "" (see D10022).
-- Add two positive testcases:
--- test the error case using kvm_write on a O_RDONLY descriptor.
--- test the "no error" case using kvm_read(3) and kvm_nlist(3) as
    helper routines and by injecting a bogus error message via
    _kvm_err (an internal API) _kvm_err was used as there isn't a
    formalized way to clear the error output, and because
    kvm_nlist always returns ENOENT with the NULL terminator today.
- kvm_open, kvm_open2:
-- Add some basic negative tests for kvm_open(3) and kvm_open2(3).
   Testing positive cases with a specific
   `corefile`/`execfile`/`resolver` requires more work and would require
   user intervention today in order to reliably test this out.

Reviewed by:	markj
MFC after:	2 months
Sponsored by:	Dell EMC Isilon
Differential Revision:	D10024
2017-03-28 17:37:49 +00:00
..
tests lib/libkvm: start adding basic tests for kvm(3) 2017-03-28 17:37:49 +00:00
kvm_aarch64.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_amd64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_amd64.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_arm.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_arm.h Rename pte.h to pte-v4.h and start including directly either pte-v4.h 2016-02-19 09:23:32 +00:00
kvm_cptime.c Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_getcptime.3
kvm_geterr.3 kvm_geterr: handle kd == NULL in a deterministic/graceful manner 2017-03-21 19:02:17 +00:00
kvm_getloadavg.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_getloadavg.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_getpcpu.3 Tweak r315363 slightly 2017-03-16 03:24:15 +00:00
kvm_getprocs.3 Remove a commented out line before kvm_getprocs(3) 2017-03-19 23:04:58 +00:00
kvm_getswapinfo.3 libkvm - extend a bit the swap statistics field. 2017-01-02 15:12:11 +00:00
kvm_getswapinfo.c libkvm - extend a bit the swap statistics field. 2017-01-02 15:12:11 +00:00
kvm_i386.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_i386.h Fix building with GCC since PAGE_MASK is signed on i386. 2016-01-14 15:51:13 +00:00
kvm_minidump_aarch64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_amd64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_arm.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_i386.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_mips.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_mips.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_native.3 Capitalize .Dt macro argument 2017-03-16 03:18:06 +00:00
kvm_nlist.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_open.3 Handle kd == NULL gracefully with kvm_close(3) 2017-03-20 18:28:22 +00:00
kvm_pcpu.c lib: minor spelling fixes in comments. 2016-05-01 19:37:33 +00:00
kvm_powerpc64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_powerpc.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_private.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_private.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_proc.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_read.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_sparc64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_sparc64.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_vnet.c lib: minor spelling fixes in comments. 2016-05-01 19:37:33 +00:00
kvm.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm.c kvm_write: fix -Wcast-qual warning in pointer arithmetic argument 2017-03-21 20:48:36 +00:00
kvm.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile lib/libkvm: start adding basic tests for kvm(3) 2017-03-28 17:37:49 +00:00
Makefile.depend Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00