Lines Matching refs:bcp

787 	umem_bufctl_t *bcp;
790 if (mdb_vread(&bcp, sizeof (umem_bufctl_t *), bucket) == -1) {
796 while (bcp != NULL) {
798 (uintptr_t)bcp) == -1) {
799 mdb_warn("unable to read bufctl at %p", bcp);
803 *out = (uintptr_t)bcp;
806 bcp = bc.bc_next;
1300 const umem_bufctl_t *bcp;
1413 bcp = sp->slab_head;
1425 dprintf(("bcp is %p\n", bcp));
1427 if (bcp == NULL) {
1437 if (mdb_vread(&bc, sizeof (bc), (uintptr_t)bcp) == -1) {
1439 bcp);
1453 uintptr_t offs = (uintptr_t)bcp - (uintptr_t)kbase;
1457 " in slab %p in cache %p\n", bcp,
1463 buf = UMEM_BUF(cp, bcp);
1489 (uintptr_t)bcp);
1497 bcp = bc.bc_next;
1500 if (bcp != NULL) {
1502 sp, addr, bcp));
1796 umem_bufctl_audit_t *bcp;
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));
1833 allocdby_walk_bufctl(uintptr_t addr, const umem_bufctl_audit_t *bcp,
1836 if ((uintptr_t)bcp->bc_thread != abw->abw_thread)
1853 abw->abw_buf[abw->abw_nbufs].abb_ts = bcp->bc_timestamp;
1932 umem_bufctl_audit_t *bcp;
1933 UMEM_LOCAL_BUFCTL_AUDIT(&bcp);
1940 if (mdb_vread(bcp, UMEM_BUFCTL_AUDIT_SIZE, addr) == -1) {
1945 return (wsp->walk_callback(addr, bcp, wsp->walk_cbdata));
1959 allocdby_walk(uintptr_t addr, const umem_bufctl_audit_t *bcp, void *ignored)
1965 mdb_printf("%0?p %12llx ", addr, bcp->bc_timestamp);
1966 for (i = 0; i < bcp->bc_depth; i++) {
1967 if (mdb_lookup_by_addr(bcp->bc_stack[i],
1973 c, bcp->bc_stack[i] - (uintptr_t)sym.st_value);
2075 whatis_walk_bufctl(uintptr_t baddr, const umem_bufctl_t *bcp, whatis_info_t *wi)
2080 uintptr_t addr = (uintptr_t)bcp->bc_addr;
2504 umem_bufctl_audit_t *bcp;
2505 UMEM_LOCAL_BUFCTL_AUDIT(&bcp);
2569 if (mdb_vread(bcp, UMEM_BUFCTL_AUDIT_SIZE, addr) == -1) {
2578 depth = MIN(bcp->bc_depth, umem_stack_depth);
2595 if (bcp->bc_stack[i] >= laddr &&
2596 bcp->bc_stack[i] < haddr)
2603 if (thread != NULL && (uintptr_t)bcp->bc_thread != thread)
2606 if (earliest != 0 && bcp->bc_timestamp < earliest)
2609 if (latest != 0 && bcp->bc_timestamp > latest)
2612 if (baddr != 0 && (uintptr_t)bcp->bc_addr != baddr)
2624 addr, bcp->bc_addr, bcp->bc_timestamp, bcp->bc_thread,
2625 "", bcp->bc_cache, bcp->bc_lastlog, bcp->bc_contents);
2629 mdb_printf("%a\n", bcp->bc_stack[i]);
2633 mdb_printf("%0?p %0?p %12llx %5d", addr, bcp->bc_addr,
2634 bcp->bc_timestamp, bcp->bc_thread);
2637 if (mdb_lookup_by_addr(bcp->bc_stack[i],
2642 mdb_printf(" %a\n", bcp->bc_stack[i]);
2698 * verify that btp->bt_bxstat == (bcp ^ pat)
3485 showbc(uintptr_t addr, const umem_bufctl_audit_t *bcp, hrtime_t *newest)
3491 if (bcp->bc_timestamp == 0)
3495 *newest = bcp->bc_timestamp;
3497 delta = *newest - bcp->bc_timestamp;
3498 depth = MIN(bcp->bc_depth, umem_stack_depth);
3501 &bcp->bc_cache->cache_name) <= 0)
3502 (void) mdb_snprintf(name, sizeof (name), "%a", bcp->bc_cache);
3505 delta / NANOSEC, delta % NANOSEC, bcp->bc_addr, name);
3508 mdb_printf("\t %a\n", bcp->bc_stack[i]);
3618 umu_add(umusers_t *umu, const umem_bufctl_audit_t *bcp,
3621 int i, depth = MIN(bcp->bc_depth, umem_stack_depth);
3663 signature += bcp->bc_stack[i];
3676 bcp->bc_stack[i];
3702 umo->umo_stack[i] = bcp->bc_stack[i];
3711 umause1(uintptr_t addr, const umem_bufctl_audit_t *bcp, umusers_t *umu)
3715 umu_add(umu, bcp, cp->cache_bufsize, cp->cache_bufsize);
3724 umause2(uintptr_t addr, const umem_bufctl_audit_t *bcp, umusers_t *umu)
3726 int i, depth = MIN(bcp->bc_depth, umem_stack_depth);
3730 cp->cache_bufsize, addr, bcp->bc_thread, cp->cache_name);
3733 mdb_printf("\t %a\n", bcp->bc_stack[i]);
3735 umu_add(umu, bcp, cp->cache_bufsize, cp->cache_bufsize);