Lines Matching refs:uintptr_t
71 #define LKM_CTLPTR(ctl) ((uintptr_t)(ctl) & ~(LKM_CTL_MASK))
72 #define LKM_CTLTYPE(ctl) ((uintptr_t)(ctl) & (LKM_CTL_MASK))
74 static uintptr_t leak_brkbase;
75 static uintptr_t leak_brksize;
78 (((uintptr_t)(ptr) - leak_brkbase) < leak_brksize)
81 uintptr_t ls_start;
82 uintptr_t ls_end;
87 uintptr_t lm_seg_count;
88 uintptr_t lm_seg_max;
97 leaky_mtab(uintptr_t addr, const umem_bufctl_audit_t *bcp, leak_mtab_t **lmp)
101 lm->lkm_base = (uintptr_t)bcp->bc_addr;
109 leaky_mtab_addr(uintptr_t addr, void *ignored, leak_mtab_t **lmp)
119 leaky_seg(uintptr_t addr, const vmem_seg_t *seg, leak_mtab_t **lmp)
130 leaky_vmem(uintptr_t addr, const vmem_t *vmem, leak_mtab_t **lmp)
145 leaky_estimate_vmem(uintptr_t addr, const vmem_t *vmem, size_t *est)
171 leaky_seg_search(uintptr_t addr, leaky_seg_info_t *listp, unsigned count)
196 leaky_count(uintptr_t addr, void *unused, size_t *total)
205 leaky_read_segs(uintptr_t addr, const vmem_seg_t *seg, leaky_maps_t *lmp)
223 leaky_process_anon_mappings(uintptr_t ignored, const prmap_t *pmp,
226 uintptr_t start = pmp->pr_vaddr;
227 uintptr_t end = pmp->pr_vaddr + pmp->pr_size;
232 uintptr_t brk_start = Psp->pr_brkbase;
233 uintptr_t brk_end = Psp->pr_brkbase + Psp->pr_brksize;
274 uintptr_t brkbase = lmp->lm_pstatus->pr_brkbase;
275 uintptr_t brkend = brkbase + lmp->lm_pstatus->pr_brksize;
303 uintptr_t curbrk = P2ROUNDUP(brkbase, umem_pagesize);
379 if (mdb_vread(&vmem, sizeof (vmem), (uintptr_t)vm_next) == -1) {
390 &lm.lm_seg_max, (uintptr_t)heap_top) == -1) {
398 (uintptr_t)heap_top) == -1) {
433 if (mdb_vread(&vmem, sizeof (vmem), (uintptr_t)c->cache_arena) == -1) {
435 (uintptr_t)c->cache_arena, c->cache_name);
455 leaky_estimate(uintptr_t addr, const umem_cache_t *c, size_t *est)
467 leaky_cache(uintptr_t addr, const umem_cache_t *c, leak_mtab_t **lmp)
510 leaky_grep_mappings(uintptr_t ignored, const prmap_t *pmp,
574 const uintptr_t *regs = (const uintptr_t *)&lwp->pr_reg;
576 uintptr_t sp;
577 uintptr_t addr;
647 leaky_subr_caller(const uintptr_t *stack, uint_t depth, char *buf,
648 uintptr_t *pcp)
652 uintptr_t pc = 0;
680 uintptr_t lcaller, rcaller;
789 uintptr_t addr = LKM_CTLPTR(lmp->lkm_bufctl);
816 leaky_add_leak(TYPE_UMEM, addr, (uintptr_t)bcp->bc_addr,
818 (uintptr_t)bcp->bc_cache, (uintptr_t)bcp->bc_cache);
891 uintptr_t caller;
1099 width = sizeof (uintptr_t) * 2;
1107 width = sizeof (uintptr_t) * 2;