Lines Matching refs:bc
872 kmem_bufctl_t bc; in kmem_hash_lookup() local
881 if (mdb_vread(&bc, sizeof (kmem_bufctl_t), in kmem_hash_lookup()
886 if (bc.bc_addr == buf) { in kmem_hash_lookup()
890 bcp = bc.bc_next; in kmem_hash_lookup()
1346 kmem_bufctl_t bc; in kmem_walk_step() local
1489 if (mdb_vread(&bc, sizeof (bc), (uintptr_t)bcp) == -1) { in kmem_walk_step()
1494 buf = bc.bc_addr; in kmem_walk_step()
1514 bc = *((kmem_bufctl_t *)((uintptr_t)ubase + offs)); in kmem_walk_step()
1549 bcp = bc.bc_next; in kmem_walk_step()
1705 kmem_bufctl_audit_t bc; in bufctl_history_walk_init() local
1713 if (mdb_vread(&bc, sizeof (bc), wsp->walk_addr) == -1) { in bufctl_history_walk_init()
1720 bhw->bhw_cache = bc.bc_cache; in bufctl_history_walk_init()
1721 bhw->bhw_slab = bc.bc_slab; in bufctl_history_walk_init()
1727 if (bc.bc_lastlog != NULL && in bufctl_history_walk_init()
1728 mdb_vread(&bcn, sizeof (bcn), (uintptr_t)bc.bc_lastlog) != -1 && in bufctl_history_walk_init()
1729 bc.bc_addr == bcn.bc_addr && in bufctl_history_walk_init()
1730 bc.bc_cache == bcn.bc_cache && in bufctl_history_walk_init()
1731 bc.bc_slab == bcn.bc_slab && in bufctl_history_walk_init()
1732 bc.bc_timestamp == bcn.bc_timestamp && in bufctl_history_walk_init()
1733 bc.bc_thread == bcn.bc_thread) in bufctl_history_walk_init()
1734 bhw->bhw_next = bc.bc_lastlog; in bufctl_history_walk_init()
1738 wsp->walk_addr = (uintptr_t)bc.bc_addr; in bufctl_history_walk_init()
1750 kmem_bufctl_audit_t bc; in bufctl_history_walk_step() local
1755 if (mdb_vread(&bc, sizeof (bc), addr) == -1) { in bufctl_history_walk_step()
1765 if ((uintptr_t)bc.bc_addr != baseaddr || in bufctl_history_walk_step()
1766 bc.bc_cache != bhw->bhw_cache || in bufctl_history_walk_step()
1767 bc.bc_slab != bhw->bhw_slab || in bufctl_history_walk_step()
1768 (bhw->bhw_timestamp != 0 && bc.bc_timestamp >= bhw->bhw_timestamp)) in bufctl_history_walk_step()
1771 bhw->bhw_next = bc.bc_lastlog; in bufctl_history_walk_step()
1772 bhw->bhw_timestamp = bc.bc_timestamp; in bufctl_history_walk_step()
1774 return (wsp->walk_callback(addr, &bc, wsp->walk_cbdata)); in bufctl_history_walk_step()
1996 kmem_bufctl_audit_t bc; in allocdby_walk_step() local
2004 if (mdb_vread(&bc, sizeof (bc), addr) == -1) { in allocdby_walk_step()
2009 return (wsp->walk_callback(addr, &bc, wsp->walk_cbdata)); in allocdby_walk_step()
2856 kmem_bufctl_audit_t bc; in bufctl() local
2929 if (mdb_vread(&bc, sizeof (bc), addr) == -1) { in bufctl()
2938 depth = MIN(bc.bc_depth, KMEM_STACK_DEPTH); in bufctl()
2955 if (bc.bc_stack[i] >= laddr && bc.bc_stack[i] < haddr) in bufctl()
2962 if (thread != 0 && (uintptr_t)bc.bc_thread != thread) in bufctl()
2965 if (earliest != 0 && bc.bc_timestamp < earliest) in bufctl()
2968 if (latest != 0 && bc.bc_timestamp > latest) in bufctl()
2971 if (baddr != 0 && (uintptr_t)bc.bc_addr != baddr) in bufctl()
2983 addr, bc.bc_addr, bc.bc_timestamp, bc.bc_thread, in bufctl()
2984 "", bc.bc_cache, bc.bc_lastlog, bc.bc_contents); in bufctl()
2988 mdb_printf("%a\n", bc.bc_stack[i]); in bufctl()
2992 mdb_printf("%0?p %0?p %12llx %0?p", addr, bc.bc_addr, in bufctl()
2993 bc.bc_timestamp, bc.bc_thread); in bufctl()
2996 if (mdb_lookup_by_addr(bc.bc_stack[i], in bufctl()
3001 mdb_printf(" %a\n", bc.bc_stack[i]); in bufctl()