diff options
author | peter <peter@FreeBSD.org> | 2006-04-21 04:32:51 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2006-04-21 04:32:51 +0000 |
commit | aeeca95e16a25ef1697a410a1c75cedb6f3fcd27 (patch) | |
tree | c546335c0248613d0123d64bcdb8f956ae439af1 /lib/libkvm/kvm_private.h | |
parent | 3fd2125c991b07c464f53c893b51e9d74bea6859 (diff) | |
download | FreeBSD-src-aeeca95e16a25ef1697a410a1c75cedb6f3fcd27.zip FreeBSD-src-aeeca95e16a25ef1697a410a1c75cedb6f3fcd27.tar.gz |
Teach libkvm how to read minidumps. It turns out that minidumps are
far more convenient for libkvm to work with because of the page table
block at the beginning. As a result, the MD code is smaller.
libkvm will automatically detect old vs mini dumps on i386 and amd64.
libkvm will handle i386 PAE and non-PAE modes. There is a PAE flag in
the i386 minidump header to signal the width of the entries in the
page table block.
Other convenient values are also present, such as kernbase and the direct
map addresses on amd64.
Diffstat (limited to 'lib/libkvm/kvm_private.h')
-rw-r--r-- | lib/libkvm/kvm_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libkvm/kvm_private.h b/lib/libkvm/kvm_private.h index b0d696a..9bbeb43 100644 --- a/lib/libkvm/kvm_private.h +++ b/lib/libkvm/kvm_private.h @@ -81,3 +81,9 @@ void *_kvm_realloc(kvm_t *kd, void *, size_t); void _kvm_syserr (kvm_t *kd, const char *program, const char *fmt, ...) __printflike(3, 4); int _kvm_uvatop(kvm_t *, const struct proc *, u_long, u_long *); + +#if defined(__amd64__) || defined(__i386__) +void _kvm_minidump_freevtop(kvm_t *); +int _kvm_minidump_initvtop(kvm_t *); +int _kvm_minidump_kvatop(kvm_t *, u_long, off_t *); +#endif |