Date: Sat, 25 May 2019 23:36:21 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r348283 - head/sys/i386/i386 Message-ID: <201905252336.x4PNaLbf074611@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Sat May 25 23:36:20 2019 New Revision: 348283 URL: https://svnweb.freebsd.org/changeset/base/348283 Log: Remove pmap_pid_dump() from the i386 pmap. It has not been compilable in a long time and doesn't seem very useful. Suggested by: kib MFC after: 1 week Modified: head/sys/i386/i386/pmap.c Modified: head/sys/i386/i386/pmap.c ============================================================================== --- head/sys/i386/i386/pmap.c Sat May 25 21:57:01 2019 (r348282) +++ head/sys/i386/i386/pmap.c Sat May 25 23:36:20 2019 (r348283) @@ -5901,67 +5901,6 @@ __CONCAT(PMTYPE, trm_free)(void *addr, size_t size) vmem_free(pmap_trm_arena, (uintptr_t)addr, roundup2(size, 4)); } -#if defined(PMAP_DEBUG) -pmap_pid_dump(int pid) -{ - pmap_t pmap; - struct proc *p; - int npte = 0; - int index; - - sx_slock(&allproc_lock); - FOREACH_PROC_IN_SYSTEM(p) { - if (p->p_pid != pid) - continue; - - if (p->p_vmspace) { - int i,j; - index = 0; - pmap = vmspace_pmap(p->p_vmspace); - for (i = 0; i < NPDEPTD; i++) { - pd_entry_t *pde; - pt_entry_t *pte; - vm_offset_t base = i << PDRSHIFT; - - pde = &pmap->pm_pdir[i]; - if (pde && pmap_pde_v(pde)) { - for (j = 0; j < NPTEPG; j++) { - vm_offset_t va = base + (j << PAGE_SHIFT); - if (va >= (vm_offset_t) VM_MIN_KERNEL_ADDRESS) { - if (index) { - index = 0; - printf("\n"); - } - sx_sunlock(&allproc_lock); - return (npte); - } - pte = pmap_pte(pmap, va); - if (pte && pmap_pte_v(pte)) { - pt_entry_t pa; - vm_page_t m; - pa = *pte; - m = PHYS_TO_VM_PAGE(pa & PG_FRAME); - printf("va: 0x%x, pt: 0x%x, h: %d, w: %d, f: 0x%x", - va, pa, m->hold_count, m->wire_count, m->flags); - npte++; - index++; - if (index >= 2) { - index = 0; - printf("\n"); - } else { - printf(" "); - } - } - } - } - } - } - } - sx_sunlock(&allproc_lock); - return (npte); -} -#endif - static void __CONCAT(PMTYPE, ksetrw)(vm_offset_t va) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905252336.x4PNaLbf074611>