diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-23 08:34:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-23 08:34:52 +0000 |
commit | 0e1210140cac4a54e2335b3d71c7749bfd0b83bf (patch) | |
tree | d598e319d7c7405ac7752533c904bf7f7e2d5a42 | |
parent | 2bd9ae56cddf10aa6994fc3cfff636a92ae23609 (diff) |
count pagein faults; netbsd pr#1397
-rw-r--r-- | sys/vm/vm_fault.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 033486cd54b..dcde5af75b2 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -1,5 +1,5 @@ -/* $OpenBSD: vm_fault.c,v 1.2 1996/03/03 17:45:28 niklas Exp $ */ -/* $NetBSD: vm_fault.c,v 1.17 1996/02/05 01:53:55 christos Exp $ */ +/* $OpenBSD: vm_fault.c,v 1.3 1996/05/23 08:34:51 deraadt Exp $ */ +/* $NetBSD: vm_fault.c,v 1.18 1996/05/20 17:40:02 mrg Exp $ */ /* * Copyright (c) 1991, 1993 @@ -70,7 +70,9 @@ */ #include <sys/param.h> +#include <sys/proc.h> #include <sys/systm.h> +#include <sys/user.h> #include <vm/vm.h> #include <vm/vm_page.h> @@ -325,6 +327,8 @@ vm_fault(map, vaddr, fault_type, change_wiring) */ UNLOCK_MAP; cnt.v_pageins++; + if (curproc) + curproc->p_addr->u_stats.p_ru.ru_majflt++; rv = vm_pager_get(object->pager, m, TRUE); /* |