freebsd-src/lib/libkvm
Marcel Moolenaar 5f96573141 Add support for virtual cores (aka minidumps). To that end, refactor this
file as follows:
1.  Common ia64-specific support functions have the ia64_ prefix.
2.  Functions that work on physical cores have the phys_ prefix.
3.  Functions that work on virtual cores have the virt_ prefix.

With that:
1.  _kvm_kvatop() has been renamed to phys_kvatop() as it handles
    physical cores only.
2.  The new _kvm_kvatop() is nothing but a wrapper that calls either
    phys_kvatop() or virt_kvatop() by virtue of the kvatop function
    pointer in the vmstate structure.
3.  virt_kvatop() is nothing but a wrapper around virt_addr2off().
4.  virt_addr2off() iterates over the Phdrs to find the segment in
    which the address falls and return the file offset for it.

Now it's up to the kernel to populate the core file appropriately.
2013-12-29 02:31:40 +00:00
..
kvm.3
kvm.c Allow building a cross libkvm by setting TARGET_ARCH. The library so 2013-12-28 23:01:57 +00:00
kvm.h In r227839, when removing libkvm dependency on procfs(5), 2013-07-10 19:44:43 +00:00
kvm_amd64.c
kvm_arm.c
kvm_cptime.c
kvm_file.c
kvm_getcptime.3
kvm_geterr.3
kvm_getfiles.3
kvm_getloadavg.3
kvm_getloadavg.c
kvm_getpcpu.3 Remove EOL whitespace. 2013-04-11 13:05:38 +00:00
kvm_getprocs.3
kvm_getswapinfo.3
kvm_getswapinfo.c
kvm_i386.c
kvm_ia64.c Add support for virtual cores (aka minidumps). To that end, refactor this 2013-12-29 02:31:40 +00:00
kvm_minidump_amd64.c
kvm_minidump_arm.c
kvm_minidump_i386.c
kvm_minidump_mips.c
kvm_mips.c Switch to 2-clause license and standard text 2013-06-06 21:09:27 +00:00
kvm_nlist.3
kvm_open.3
kvm_pcpu.c Revert r256514 for libkvm. It wasn't correct actually and breaks build. 2013-10-15 13:53:35 +00:00
kvm_powerpc.c
kvm_powerpc64.c
kvm_private.h
kvm_proc.c kvm_getprocs: gracefully handle errors from kvm_deadprocs 2012-10-06 20:16:04 +00:00
kvm_read.3
kvm_sparc.c
kvm_sparc64.c
kvm_vnet.c
Makefile Allow building a cross libkvm by setting TARGET_ARCH. The library so 2013-12-28 23:01:57 +00:00