diff options
author | kmacy <kmacy@FreeBSD.org> | 2012-01-27 20:18:31 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2012-01-27 20:18:31 +0000 |
commit | 84d434965a78b0d9e3e8d915e58cd0bc752d6a25 (patch) | |
tree | d03789c6012846a09fb648b5b7c191277d20df09 /sys/amd64/amd64/uma_machdep.c | |
parent | ee292f1f00c3658b64c10f59158dda32531a8afb (diff) | |
download | FreeBSD-src-84d434965a78b0d9e3e8d915e58cd0bc752d6a25.zip FreeBSD-src-84d434965a78b0d9e3e8d915e58cd0bc752d6a25.tar.gz |
exclude kmem_alloc'ed ARC data buffers from kernel minidumps on amd64
excluding other allocations including UMA now entails the addition of
a single flag to kmem_alloc or uma zone create
Reviewed by: alc, avg
MFC after: 2 weeks
Diffstat (limited to 'sys/amd64/amd64/uma_machdep.c')
-rw-r--r-- | sys/amd64/amd64/uma_machdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/amd64/uma_machdep.c b/sys/amd64/amd64/uma_machdep.c index 3583975..dc9c307 100644 --- a/sys/amd64/amd64/uma_machdep.c +++ b/sys/amd64/amd64/uma_machdep.c @@ -65,7 +65,8 @@ uma_small_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) break; } pa = m->phys_addr; - dump_add_page(pa); + if ((wait & M_NODUMP) == 0) + dump_add_page(pa); va = (void *)PHYS_TO_DMAP(pa); if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0) pagezero(va); |