Lines Matching refs:ulw
1730 umem_log_walk_t *ulw;
1748 ulw = mdb_zalloc(sizeof (umem_log_walk_t), UM_SLEEP);
1749 lhp = &ulw->ulw_lh;
1753 mdb_free(ulw, sizeof (umem_log_walk_t));
1757 ulw->ulw_size = lhp->lh_chunksize * lhp->lh_nchunks;
1758 ulw->ulw_base = mdb_alloc(ulw->ulw_size, UM_SLEEP);
1761 if (mdb_vread(ulw->ulw_base, ulw->ulw_size,
1764 mdb_free(ulw->ulw_base, ulw->ulw_size);
1765 mdb_free(ulw, sizeof (umem_log_walk_t));
1769 ulw->ulw_sorted = mdb_alloc(maxndx * lhp->lh_nchunks *
1774 ((uintptr_t)ulw->ulw_base + i * lhp->lh_chunksize);
1778 ulw->ulw_sorted[k++] = (umem_bufctl_audit_t *)chunk;
1783 qsort(ulw->ulw_sorted, k, sizeof (umem_bufctl_audit_t *),
1786 ulw->ulw_maxndx = k;
1787 wsp->walk_data = ulw;
1795 umem_log_walk_t *ulw = wsp->walk_data;
1798 if (ulw->ulw_ndx == ulw->ulw_maxndx)
1801 bcp = ulw->ulw_sorted[ulw->ulw_ndx++];
1803 return (wsp->walk_callback((uintptr_t)bcp - (uintptr_t)ulw->ulw_base +
1804 (uintptr_t)ulw->ulw_lh.lh_base, bcp, wsp->walk_cbdata));
1810 umem_log_walk_t *ulw = wsp->walk_data;
1812 mdb_free(ulw->ulw_base, ulw->ulw_size);
1813 mdb_free(ulw->ulw_sorted, ulw->ulw_maxndx *
1815 mdb_free(ulw, sizeof (umem_log_walk_t));