freebsd-dev/share/mk
John Baldwin 7f911abe54 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
2015-11-27 18:58:26 +00:00
..
atf.test.mk Remove ALLOW_DEPRECATED_ATF_TOOLS/ATFFILE support from atf.test.mk 2015-06-15 06:38:59 +00:00
auto.obj.mk Add META_MODE support. 2015-06-13 19:20:56 +00:00
bsd.arch.inc.mk
bsd.compiler.mk Add built-in ccache build support via WITH_CCACHE_BUILD option. 2015-11-08 00:50:18 +00:00
bsd.confs.mk Use proper CONFDIR after r289148 2015-10-27 23:49:32 +00:00
bsd.cpu.mk Add aarch64 support to CPUTYPE 2015-11-20 21:49:49 +00:00
bsd.crunchgen.mk There seems to be no reason to duplicate CANONICALOBJDIR logic from bsd.obj.mk, 2015-11-23 23:04:52 +00:00
bsd.dep.mk Rename META_MODE option to DIRDEPS_BUILD 2015-11-14 03:24:48 +00:00
bsd.doc.mk bsd.doc.mk: Similar to r289391, make installing to a missing directory an error. 2015-11-13 17:27:23 +00:00
bsd.dtb.mk Add infrastructure to build dtb files from dts files. 2015-01-08 18:28:06 +00:00
bsd.endian.mk Start to import support for the AArch64 architecture from ARM. This change 2015-03-19 13:53:47 +00:00
bsd.files.mk META MODE: Fix FILESNAME not being respected sans other FILES_group overrides. 2015-10-26 23:28:35 +00:00
bsd.incs.mk Make installing to a non-existent directory an error. 2015-10-15 22:49:56 +00:00
bsd.info.mk Make installing to a non-existent directory an error. 2015-10-15 22:49:56 +00:00
bsd.init.mk Avoid anoying warning 2015-06-14 03:27:22 +00:00
bsd.kmod.mk Eliminate bsd.sys.mk on purpose. Do not put it back. 2015-01-01 04:26:45 +00:00
bsd.lib.mk FAST_DEPEND: Similar to r290629, do always depend on headers if 'make depend' 2015-11-19 00:45:36 +00:00
bsd.libnames.mk Define a LIB<NAME>DIR for every library that LIBADD provides. 2015-11-25 19:49:55 +00:00
bsd.links.mk Fix DESTDIR support 2015-03-15 23:40:50 +00:00
bsd.man.mk Fix installation of manpages with WITHOUT_COMPRESS broken since r284685. 2015-10-22 22:29:25 +00:00
bsd.mkopt.mk Appy := to dependent opts once value determined. 2015-06-22 19:01:09 +00:00
bsd.nls.mk In jobs mode we can use .ORDER to force stage_links to run after other 2015-10-07 00:24:27 +00:00
bsd.obj.mk Standardize on OBJTOP in and outside of META MODE. 2015-11-26 01:47:56 +00:00
bsd.opts.mk Add built-in ccache build support via WITH_CCACHE_BUILD option. 2015-11-08 00:50:18 +00:00
bsd.own.mk Stop looking up the same id(1) results in sub-makes. 2015-11-25 19:44:58 +00:00
bsd.port.mk Avoid sub-shell for realpath(1) for bmake by using its built-in :tA. 2015-09-03 17:01:58 +00:00
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk Avoid sub-shell for realpath(1) for bmake by using its built-in :tA. 2015-09-03 17:01:58 +00:00
bsd.prog.mk Add built-in ccache build support via WITH_CCACHE_BUILD option. 2015-11-08 00:50:18 +00:00
bsd.progs.mk Follow-up r291338 to handle .d, .y and .l files better as well. 2015-11-25 22:40:14 +00:00
bsd.README Sort properly. 2015-10-24 05:00:20 +00:00
bsd.snmpmod.mk
bsd.stand.mk Use CFLAGS_NO_SIMD in preference to varying lists of -mno-xxxx flags. 2015-08-27 23:46:42 +00:00
bsd.subdir.mk Rename META_MODE option to DIRDEPS_BUILD 2015-11-14 03:24:48 +00:00
bsd.symver.mk
bsd.sys.mk META MODE: Don't stage INTERNALPROGs. 2015-11-20 00:22:55 +00:00
bsd.test.mk Default TESTSDIR to /usr/tests/${RELDIR:H} 2015-10-11 21:29:24 +00:00
dirdeps.mk Default MK_META_MODE from MK_DIRDEPS_BUILD 2015-11-16 22:50:23 +00:00
gendirdeps.mk Add META_MODE support. 2015-06-13 19:20:56 +00:00
host-target.mk Add META_MODE support. 2015-06-13 19:20:56 +00:00
install-new.mk Add META_MODE support. 2015-06-13 19:20:56 +00:00
local.autodep.mk To help bootstrap new local depends, 2015-10-07 00:32:33 +00:00
local.dirdeps.mk Standardize on OBJTOP in and outside of META MODE. 2015-11-26 01:47:56 +00:00
local.gendirdeps.mk META MODE: Fix 'make bootstrap-tools'. 2015-11-25 19:44:51 +00:00
local.init.mk META MODE: Fix MACHINE=host builds. 2015-11-25 19:45:01 +00:00
local.meta.sys.mk META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host. 2015-11-25 19:10:28 +00:00
local.sys.env.mk Move include of make.conf back to its old position. 2015-06-19 14:56:24 +00:00
local.sys.mk META MODE: Show PATH on errors. 2015-11-25 19:44:31 +00:00
Makefile META MODE: These need object directories to handle staging. 2015-11-26 01:14:27 +00:00
meta2deps.py Add META_MODE support. 2015-06-13 19:20:56 +00:00
meta2deps.sh Add META_MODE support. 2015-06-13 19:20:56 +00:00
meta.autodep.mk META MODE: Don't add staged DPADDs to DIRDEPS when bootstrapping gendirdeps. 2015-11-25 19:13:45 +00:00
meta.stage.mk META MODE: Don't double stage SYMLINKS for shared libraries. 2015-11-13 22:27:24 +00:00
meta.subdir.mk Add META_MODE support. 2015-06-13 19:20:56 +00:00
meta.sys.mk Add META_MODE support. 2015-06-13 19:20:56 +00:00
netbsd-tests.test.mk Standardize on OBJTOP in and outside of META MODE. 2015-11-26 01:47:56 +00:00
plain.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
src.init.mk The 'buildenv' target can safely be ran with '+'. 2015-11-06 21:49:17 +00:00
src.libnames.mk Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
src.opts.mk Retire the NONE cipher option. 2015-11-23 12:48:13 +00:00
src.sys.env.mk RELDIR is useful without META_MODE. Always define it. 2015-09-23 23:30:57 +00:00
src.sys.mk Trim space 2015-09-17 21:51:48 +00:00
stage-install.sh Add META_MODE support. 2015-06-13 19:20:56 +00:00
suite.test.mk Remove 'set -e' that are no longer needed as it is already default. 2015-09-25 23:03:32 +00:00
sys.dependfile.mk Add META_MODE support. 2015-06-13 19:20:56 +00:00
sys.mk META MODE: Don't create .meta files when symlinking sources into the obj directory. 2015-11-25 19:44:43 +00:00
tap.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
version_gen.awk