Lines Matching refs:bcp

787 	umem_bufctl_t *bcp;  in umem_hash_lookup()  local
790 if (mdb_vread(&bcp, sizeof (umem_bufctl_t *), bucket) == -1) { in umem_hash_lookup()
796 while (bcp != NULL) { in umem_hash_lookup()
798 (uintptr_t)bcp) == -1) { in umem_hash_lookup()
799 mdb_warn("unable to read bufctl at %p", bcp); in umem_hash_lookup()
803 *out = (uintptr_t)bcp; in umem_hash_lookup()
806 bcp = bc.bc_next; in umem_hash_lookup()
1300 const umem_bufctl_t *bcp; in umem_walk_step() local
1413 bcp = sp->slab_head; in umem_walk_step()
1425 dprintf(("bcp is %p\n", bcp)); in umem_walk_step()
1427 if (bcp == NULL) { in umem_walk_step()
1437 if (mdb_vread(&bc, sizeof (bc), (uintptr_t)bcp) == -1) { in umem_walk_step()
1439 bcp); in umem_walk_step()
1453 uintptr_t offs = (uintptr_t)bcp - (uintptr_t)kbase; in umem_walk_step()
1457 " in slab %p in cache %p\n", bcp, in umem_walk_step()
1463 buf = UMEM_BUF(cp, bcp); in umem_walk_step()
1489 (uintptr_t)bcp); in umem_walk_step()
1497 bcp = bc.bc_next; in umem_walk_step()
1500 if (bcp != NULL) { in umem_walk_step()
1502 sp, addr, bcp)); in umem_walk_step()
1796 umem_bufctl_audit_t *bcp; in umem_log_walk_step() local
1801 bcp = ulw->ulw_sorted[ulw->ulw_ndx++]; in umem_log_walk_step()
1803 return (wsp->walk_callback((uintptr_t)bcp - (uintptr_t)ulw->ulw_base + in umem_log_walk_step()
1804 (uintptr_t)ulw->ulw_lh.lh_base, bcp, wsp->walk_cbdata)); in umem_log_walk_step()
1833 allocdby_walk_bufctl(uintptr_t addr, const umem_bufctl_audit_t *bcp, in allocdby_walk_bufctl() argument
1836 if ((uintptr_t)bcp->bc_thread != abw->abw_thread) in allocdby_walk_bufctl()
1853 abw->abw_buf[abw->abw_nbufs].abb_ts = bcp->bc_timestamp; in allocdby_walk_bufctl()
1932 umem_bufctl_audit_t *bcp; in allocdby_walk_step() local
1933 UMEM_LOCAL_BUFCTL_AUDIT(&bcp); in allocdby_walk_step()
1940 if (mdb_vread(bcp, UMEM_BUFCTL_AUDIT_SIZE, addr) == -1) { in allocdby_walk_step()
1945 return (wsp->walk_callback(addr, bcp, wsp->walk_cbdata)); in allocdby_walk_step()
1959 allocdby_walk(uintptr_t addr, const umem_bufctl_audit_t *bcp, void *ignored) in allocdby_walk() argument
1965 mdb_printf("%0?p %12llx ", addr, bcp->bc_timestamp); in allocdby_walk()
1966 for (i = 0; i < bcp->bc_depth; i++) { in allocdby_walk()
1967 if (mdb_lookup_by_addr(bcp->bc_stack[i], in allocdby_walk()
1973 c, bcp->bc_stack[i] - (uintptr_t)sym.st_value); in allocdby_walk()
2075 whatis_walk_bufctl(uintptr_t baddr, const umem_bufctl_t *bcp, whatis_info_t *wi) in whatis_walk_bufctl() argument
2080 uintptr_t addr = (uintptr_t)bcp->bc_addr; in whatis_walk_bufctl()
2504 umem_bufctl_audit_t *bcp; in bufctl() local
2505 UMEM_LOCAL_BUFCTL_AUDIT(&bcp); in bufctl()
2569 if (mdb_vread(bcp, UMEM_BUFCTL_AUDIT_SIZE, addr) == -1) { in bufctl()
2578 depth = MIN(bcp->bc_depth, umem_stack_depth); in bufctl()
2595 if (bcp->bc_stack[i] >= laddr && in bufctl()
2596 bcp->bc_stack[i] < haddr) in bufctl()
2603 if (thread != 0 && (uintptr_t)bcp->bc_thread != thread) in bufctl()
2606 if (earliest != 0 && bcp->bc_timestamp < earliest) in bufctl()
2609 if (latest != 0 && bcp->bc_timestamp > latest) in bufctl()
2612 if (baddr != 0 && (uintptr_t)bcp->bc_addr != baddr) in bufctl()
2624 addr, bcp->bc_addr, bcp->bc_timestamp, bcp->bc_thread, in bufctl()
2625 "", bcp->bc_cache, bcp->bc_lastlog, bcp->bc_contents); in bufctl()
2629 mdb_printf("%a\n", bcp->bc_stack[i]); in bufctl()
2633 mdb_printf("%0?p %0?p %12llx %5d", addr, bcp->bc_addr, in bufctl()
2634 bcp->bc_timestamp, bcp->bc_thread); in bufctl()
2637 if (mdb_lookup_by_addr(bcp->bc_stack[i], in bufctl()
2642 mdb_printf(" %a\n", bcp->bc_stack[i]); in bufctl()
3484 showbc(uintptr_t addr, const umem_bufctl_audit_t *bcp, hrtime_t *newest) in showbc() argument
3490 if (bcp->bc_timestamp == 0) in showbc()
3494 *newest = bcp->bc_timestamp; in showbc()
3496 delta = *newest - bcp->bc_timestamp; in showbc()
3497 depth = MIN(bcp->bc_depth, umem_stack_depth); in showbc()
3500 &bcp->bc_cache->cache_name) <= 0) in showbc()
3501 (void) mdb_snprintf(name, sizeof (name), "%a", bcp->bc_cache); in showbc()
3504 delta / NANOSEC, delta % NANOSEC, bcp->bc_addr, name); in showbc()
3507 mdb_printf("\t %a\n", bcp->bc_stack[i]); in showbc()
3617 umu_add(umusers_t *umu, const umem_bufctl_audit_t *bcp, in umu_add() argument
3620 int i, depth = MIN(bcp->bc_depth, umem_stack_depth); in umu_add()
3662 signature += bcp->bc_stack[i]; in umu_add()
3675 bcp->bc_stack[i]; in umu_add()
3701 umo->umo_stack[i] = bcp->bc_stack[i]; in umu_add()
3710 umause1(uintptr_t addr, const umem_bufctl_audit_t *bcp, umusers_t *umu) in umause1() argument
3714 umu_add(umu, bcp, cp->cache_bufsize, cp->cache_bufsize); in umause1()
3723 umause2(uintptr_t addr, const umem_bufctl_audit_t *bcp, umusers_t *umu) in umause2() argument
3725 int i, depth = MIN(bcp->bc_depth, umem_stack_depth); in umause2()
3729 cp->cache_bufsize, addr, bcp->bc_thread, cp->cache_name); in umause2()
3732 mdb_printf("\t %a\n", bcp->bc_stack[i]); in umause2()
3734 umu_add(umu, bcp, cp->cache_bufsize, cp->cache_bufsize); in umause2()