Lines Matching refs:bcp

871 	kmem_bufctl_t *bcp;  in kmem_hash_lookup()  local
874 if (mdb_vread(&bcp, sizeof (kmem_bufctl_t *), bucket) == -1) { in kmem_hash_lookup()
880 while (bcp != NULL) { in kmem_hash_lookup()
882 (uintptr_t)bcp) == -1) { in kmem_hash_lookup()
883 mdb_warn("unable to read bufctl at %p", bcp); in kmem_hash_lookup()
887 *out = (uintptr_t)bcp; in kmem_hash_lookup()
890 bcp = bc.bc_next; in kmem_hash_lookup()
1345 const kmem_bufctl_t *bcp; in kmem_walk_step() local
1465 bcp = sp->slab_head; in kmem_walk_step()
1477 dprintf(("bcp is %p\n", bcp)); in kmem_walk_step()
1479 if (bcp == NULL) { in kmem_walk_step()
1489 if (mdb_vread(&bc, sizeof (bc), (uintptr_t)bcp) == -1) { in kmem_walk_step()
1491 bcp); in kmem_walk_step()
1505 uintptr_t offs = (uintptr_t)bcp - (uintptr_t)kbase; in kmem_walk_step()
1509 " in slab %p in cache %p\n", bcp, in kmem_walk_step()
1515 buf = KMEM_BUF(cp, bcp); in kmem_walk_step()
1541 (uintptr_t)bcp); in kmem_walk_step()
1549 bcp = bc.bc_next; in kmem_walk_step()
1552 if (bcp != NULL) { in kmem_walk_step()
1554 sp, addr, bcp)); in kmem_walk_step()
1861 kmem_bufctl_audit_t *bcp; in kmem_log_walk_step() local
1866 bcp = klw->klw_sorted[klw->klw_ndx++]; in kmem_log_walk_step()
1868 return (wsp->walk_callback((uintptr_t)bcp - (uintptr_t)klw->klw_base + in kmem_log_walk_step()
1869 (uintptr_t)klw->klw_lh.lh_base, bcp, wsp->walk_cbdata)); in kmem_log_walk_step()
1898 allocdby_walk_bufctl(uintptr_t addr, const kmem_bufctl_audit_t *bcp, in allocdby_walk_bufctl() argument
1901 if ((uintptr_t)bcp->bc_thread != abw->abw_thread) in allocdby_walk_bufctl()
1918 abw->abw_buf[abw->abw_nbufs].abb_ts = bcp->bc_timestamp; in allocdby_walk_bufctl()
2023 allocdby_walk(uintptr_t addr, const kmem_bufctl_audit_t *bcp, void *ignored) in allocdby_walk() argument
2029 mdb_printf("%0?p %12llx ", addr, bcp->bc_timestamp); in allocdby_walk()
2030 for (i = 0; i < bcp->bc_depth; i++) { in allocdby_walk()
2031 if (mdb_lookup_by_addr(bcp->bc_stack[i], in allocdby_walk()
2037 c, bcp->bc_stack[i] - (uintptr_t)sym.st_value); in allocdby_walk()
2241 whatis_walk_bufctl(uintptr_t baddr, const kmem_bufctl_t *bcp, whatis_info_t *wi) in whatis_walk_bufctl() argument
2246 uintptr_t addr = (uintptr_t)bcp->bc_addr; in whatis_walk_bufctl()
3856 showbc(uintptr_t addr, const kmem_bufctl_audit_t *bcp, kmalog_data_t *kma) in showbc() argument
3863 if (bcp->bc_timestamp == 0) in showbc()
3867 kma->kma_newest = bcp->bc_timestamp; in showbc()
3871 (uintptr_t)&bcp->bc_cache->cache_bufsize) == -1) { in showbc()
3874 bcp->bc_cache); in showbc()
3878 if (kma->kma_addr < (uintptr_t)bcp->bc_addr || in showbc()
3879 kma->kma_addr >= (uintptr_t)bcp->bc_addr + bufsize) in showbc()
3883 delta = kma->kma_newest - bcp->bc_timestamp; in showbc()
3884 depth = MIN(bcp->bc_depth, KMEM_STACK_DEPTH); in showbc()
3887 &bcp->bc_cache->cache_name) <= 0) in showbc()
3888 (void) mdb_snprintf(name, sizeof (name), "%a", bcp->bc_cache); in showbc()
3891 delta / NANOSEC, delta % NANOSEC, bcp->bc_addr, name); in showbc()
3894 mdb_printf("\t %a\n", bcp->bc_stack[i]); in showbc()
4012 kmu_add(kmusers_t *kmu, const kmem_bufctl_audit_t *bcp, in kmu_add() argument
4015 int i, depth = MIN(bcp->bc_depth, KMEM_STACK_DEPTH); in kmu_add()
4047 signature += bcp->bc_stack[i]; in kmu_add()
4060 bcp->bc_stack[i]; in kmu_add()
4086 kmo->kmo_stack[i] = bcp->bc_stack[i]; in kmu_add()
4095 kmause1(uintptr_t addr, const kmem_bufctl_audit_t *bcp, kmusers_t *kmu) in kmause1() argument
4099 kmu_add(kmu, bcp, cp->cache_bufsize, cp->cache_bufsize); in kmause1()
4108 kmause2(uintptr_t addr, const kmem_bufctl_audit_t *bcp, kmusers_t *kmu) in kmause2() argument
4110 int i, depth = MIN(bcp->bc_depth, KMEM_STACK_DEPTH); in kmause2()
4124 cp->cache_bufsize, addr, bcp->bc_thread, cp->cache_name); in kmause2()
4127 mdb_printf("\t %a\n", bcp->bc_stack[i]); in kmause2()
4129 kmu_add(kmu, bcp, cp->cache_bufsize, cp->cache_bufsize); in kmause2()