Lines Matching refs:abw
1834 allocdby_walk_t *abw)
1836 if ((uintptr_t)bcp->bc_thread != abw->abw_thread)
1839 if (abw->abw_nbufs == abw->abw_size) {
1841 size_t oldsize = sizeof (allocdby_bufctl_t) * abw->abw_size;
1845 bcopy(abw->abw_buf, buf, oldsize);
1846 mdb_free(abw->abw_buf, oldsize);
1848 abw->abw_size <<= 1;
1849 abw->abw_buf = buf;
1852 abw->abw_buf[abw->abw_nbufs].abb_addr = addr;
1853 abw->abw_buf[abw->abw_nbufs].abb_ts = bcp->bc_timestamp;
1854 abw->abw_nbufs++;
1861 allocdby_walk_cache(uintptr_t addr, const umem_cache_t *c, allocdby_walk_t *abw)
1863 if (mdb_pwalk(abw->abw_walk, (mdb_walk_cb_t)allocdby_walk_bufctl,
1864 abw, addr) == -1) {
1885 allocdby_walk_t *abw;
1892 abw = mdb_zalloc(sizeof (allocdby_walk_t), UM_SLEEP);
1894 abw->abw_thread = wsp->walk_addr;
1895 abw->abw_walk = walk;
1896 abw->abw_size = 128; /* something reasonable */
1897 abw->abw_buf =
1898 mdb_zalloc(abw->abw_size * sizeof (allocdby_bufctl_t), UM_SLEEP);
1900 wsp->walk_data = abw;
1903 (mdb_walk_cb_t)allocdby_walk_cache, abw) == -1) {
1909 qsort(abw->abw_buf, abw->abw_nbufs, sizeof (allocdby_bufctl_t),
1930 allocdby_walk_t *abw = wsp->walk_data;
1935 if (abw->abw_ndx == abw->abw_nbufs)
1938 addr = abw->abw_buf[abw->abw_ndx++].abb_addr;
1951 allocdby_walk_t *abw = wsp->walk_data;
1953 mdb_free(abw->abw_buf, sizeof (allocdby_bufctl_t) * abw->abw_size);
1954 mdb_free(abw, sizeof (allocdby_walk_t));