Lines Matching defs:cache
56 #define TYPE_CACHE 1 /* lkb_cid is the bufctl's cache */
57 #define TYPE_KMEM 2 /* lkb_cid is the bufctl's cache */
61 #define LKM_CTL_CACHE 2 /* normal alloc, non-debug, PTR is cache */
68 static int kmem_lite_count = 0; /* cache of the kernel's version */
153 mdb_warn("cannot read arena %p for cache '%s'",
159 * If this cache isn't allocating from the kmem_default,
201 mdb_warn("can't walk kmem for cache %p (%s)", addr,
248 mdb_warn("can't walk freemem_constructed for cache %p (%s)",
532 * We also use the cache pointer as the leaks's cid, to
543 kmem_cache_t cache;
552 if (mdb_vread(&cache, sizeof (cache), addr) != -1 &&
553 (cache.cache_flags & KMF_LITE) &&
557 (uintptr_t)KMEM_BUFTAG(&cache, lmp->lkm_base)) != -1) {
665 kmem_cache_t cache;
748 if (mdb_vread(&cache, sizeof (cache), lkb->lkb_data) == -1) {
752 * cache wasn't readable.
754 mdb_warn("can't read cache %p for leaked "
760 lk_bytes += (lkb->lkb_dups + 1) * cache.cache_bufsize;
776 cache.cache_name, lk_bytes);
780 cache.cache_name, lk_ttl,
781 cache.cache_bufsize, lk_bytes);
797 if (mdb_vread(&cache, sizeof (cache), lkb->lkb_cid) == -1) {
801 * cache wasn't readable.
803 mdb_warn("can't read cache %p for leaked "
809 lk_bytes += (lkb->lkb_dups + 1) * cache.cache_bufsize;
829 cache.cache_name, lk_bytes);
833 cache.cache_name, lk_ttl,
834 cache.cache_bufsize, lk_bytes);