From 3a829b1c12609aae928c035b8f17ae238f6e809b Mon Sep 17 00:00:00 2001 From: Philip Guenthe Date: Fri, 23 Mar 2012 15:51:27 +0000 Subject: Make rusage totals, itimers, and profile settings per-process instead of per-rthread. Handling of per-thread tick and runtime counters inspired by how FreeBSD does it. ok kettenis@ --- sys/uvm/uvm_fault.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/uvm/uvm_fault.c') diff --git a/sys/uvm/uvm_fault.c b/sys/uvm/uvm_fault.c index 03a4418dac6..ba8ea7c5cc7 100644 --- a/sys/uvm/uvm_fault.c +++ b/sys/uvm/uvm_fault.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_fault.c,v 1.63 2012/03/09 13:01:29 ariane Exp $ */ +/* $OpenBSD: uvm_fault.c,v 1.64 2012/03/23 15:51:26 guenther Exp $ */ /* $NetBSD: uvm_fault.c,v 1.51 2000/08/06 00:22:53 thorpej Exp $ */ /* @@ -302,9 +302,9 @@ uvmfault_anonget(struct uvm_faultinfo *ufi, struct vm_amap *amap, uvmexp.fltanget++; /* bump rusage counters */ if (anon->an_page) - curproc->p_addr->u_stats.p_ru.ru_minflt++; + curproc->p_ru.ru_minflt++; else - curproc->p_addr->u_stats.p_ru.ru_majflt++; + curproc->p_ru.ru_majflt++; /* * loop until we get it, or fail. @@ -1268,10 +1268,10 @@ Case2: if (uobjpage) { /* update rusage counters */ - curproc->p_addr->u_stats.p_ru.ru_minflt++; + curproc->p_ru.ru_minflt++; } else { /* update rusage counters */ - curproc->p_addr->u_stats.p_ru.ru_majflt++; + curproc->p_ru.ru_majflt++; /* locked: maps(read), amap(if there), uobj */ uvmfault_unlockall(&ufi, amap, NULL, NULL); -- cgit v1.2.3