Measure kinfo_proc2::p_vm_vsize in pages, as it was always documented.
This value seems to never have been used anywhere. This makes it consistent with it's cousin p_vm_msize (which is in pages as well and has several uses).
This commit is contained in:
parent
b711398c86
commit
f8fdd418df
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kvm_proc.c,v 1.88 2010/11/12 04:52:08 uebayasi Exp $ */
|
||||
/* $NetBSD: kvm_proc.c,v 1.89 2012/06/05 08:23:06 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -67,7 +67,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: kvm_proc.c,v 1.88 2010/11/12 04:52:08 uebayasi Exp $");
|
||||
__RCSID("$NetBSD: kvm_proc.c,v 1.89 2012/06/05 08:23:06 martin Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -657,7 +657,8 @@ again:
|
|||
kp2p->p_vm_tsize = kp->kp_eproc.e_vm.vm_tsize;
|
||||
kp2p->p_vm_dsize = kp->kp_eproc.e_vm.vm_dsize;
|
||||
kp2p->p_vm_ssize = kp->kp_eproc.e_vm.vm_ssize;
|
||||
kp2p->p_vm_vsize = kp->kp_eproc.e_vm.vm_map.size;
|
||||
kp2p->p_vm_vsize = kp->kp_eproc.e_vm.vm_map.size
|
||||
/ kd->nbpg;
|
||||
/* Adjust mapped size */
|
||||
kp2p->p_vm_msize =
|
||||
(kp->kp_eproc.e_vm.vm_map.size / kd->nbpg) -
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_proc.c,v 1.183 2012/04/13 15:32:15 yamt Exp $ */
|
||||
/* $NetBSD: kern_proc.c,v 1.184 2012/06/05 08:23:05 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -62,7 +62,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.183 2012/04/13 15:32:15 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.184 2012/06/05 08:23:05 martin Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_kstack.h"
|
||||
|
@ -2279,7 +2279,7 @@ fill_kproc2(struct proc *p, struct kinfo_proc2 *ki, bool zombie)
|
|||
ki->p_vm_tsize = vm->vm_tsize;
|
||||
ki->p_vm_dsize = vm->vm_dsize;
|
||||
ki->p_vm_ssize = vm->vm_ssize;
|
||||
ki->p_vm_vsize = vm->vm_map.size;
|
||||
ki->p_vm_vsize = atop(vm->vm_map.size);
|
||||
/*
|
||||
* Since the stack is initially mapped mostly with
|
||||
* PROT_NONE and grown as needed, adjust the "mapped size"
|
||||
|
|
Loading…
Reference in New Issue