Date: Sat, 21 Feb 2015 23:04:19 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r279118 - user/nwhitehorn/ppc64-pmap-rework/aim Message-ID: <201502212304.t1LN4JGh030192@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Sat Feb 21 23:04:18 2015 New Revision: 279118 URL: https://svnweb.freebsd.org/changeset/base/279118 Log: Keep overflow statistics updated. Modified: user/nwhitehorn/ppc64-pmap-rework/aim/mmu_oea64.c user/nwhitehorn/ppc64-pmap-rework/aim/moea64_native.c Modified: user/nwhitehorn/ppc64-pmap-rework/aim/mmu_oea64.c ============================================================================== --- user/nwhitehorn/ppc64-pmap-rework/aim/mmu_oea64.c Sat Feb 21 22:38:32 2015 (r279117) +++ user/nwhitehorn/ppc64-pmap-rework/aim/mmu_oea64.c Sat Feb 21 23:04:18 2015 (r279118) @@ -1256,8 +1256,10 @@ moea64_enter(mmu_t mmu, pmap_t pmap, vm_ error = 0; /* If not in page table, reinsert it */ - if (MOEA64_PTE_SYNCH(mmu, oldpvo) < 0) + if (MOEA64_PTE_SYNCH(mmu, oldpvo) < 0) { + moea64_pte_overflow--; MOEA64_PTE_INSERT(mmu, oldpvo); + } /* Then just clean up and go home */ PV_PAGE_UNLOCK(m); Modified: user/nwhitehorn/ppc64-pmap-rework/aim/moea64_native.c ============================================================================== --- user/nwhitehorn/ppc64-pmap-rework/aim/moea64_native.c Sat Feb 21 22:38:32 2015 (r279117) +++ user/nwhitehorn/ppc64-pmap-rework/aim/moea64_native.c Sat Feb 21 23:04:18 2015 (r279118) @@ -302,6 +302,7 @@ moea64_pte_unset_native(mmu_t mmu, struc if ((pt->pte_hi & LPTE_AVPN_MASK) != (properpt.pte_hi & LPTE_AVPN_MASK)) { /* Evicted */ + moea64_pte_overflow--; rw_runlock(&moea64_eviction_lock); return (-1); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502212304.t1LN4JGh030192>