Lines Matching refs:abw
1898 allocdby_walk_t *abw)
1900 if ((uintptr_t)bcp->bc_thread != abw->abw_thread)
1903 if (abw->abw_nbufs == abw->abw_size) {
1905 size_t oldsize = sizeof (allocdby_bufctl_t) * abw->abw_size;
1909 bcopy(abw->abw_buf, buf, oldsize);
1910 mdb_free(abw->abw_buf, oldsize);
1912 abw->abw_size <<= 1;
1913 abw->abw_buf = buf;
1916 abw->abw_buf[abw->abw_nbufs].abb_addr = addr;
1917 abw->abw_buf[abw->abw_nbufs].abb_ts = bcp->bc_timestamp;
1918 abw->abw_nbufs++;
1925 allocdby_walk_cache(uintptr_t addr, const kmem_cache_t *c, allocdby_walk_t *abw)
1927 if (mdb_pwalk(abw->abw_walk, (mdb_walk_cb_t)allocdby_walk_bufctl,
1928 abw, addr) == -1) {
1949 allocdby_walk_t *abw;
1956 abw = mdb_zalloc(sizeof (allocdby_walk_t), UM_SLEEP);
1958 abw->abw_thread = wsp->walk_addr;
1959 abw->abw_walk = walk;
1960 abw->abw_size = 128; /* something reasonable */
1961 abw->abw_buf =
1962 mdb_zalloc(abw->abw_size * sizeof (allocdby_bufctl_t), UM_SLEEP);
1964 wsp->walk_data = abw;
1967 (mdb_walk_cb_t)allocdby_walk_cache, abw) == -1) {
1973 qsort(abw->abw_buf, abw->abw_nbufs, sizeof (allocdby_bufctl_t),
1994 allocdby_walk_t *abw = wsp->walk_data;
1998 if (abw->abw_ndx == abw->abw_nbufs)
2001 addr = abw->abw_buf[abw->abw_ndx++].abb_addr;
2014 allocdby_walk_t *abw = wsp->walk_data;
2016 mdb_free(abw->abw_buf, sizeof (allocdby_bufctl_t) * abw->abw_size);
2017 mdb_free(abw, sizeof (allocdby_walk_t));