Lines Matching refs:umc
2353 umem_log_walk(uintptr_t addr, const umem_bufctl_audit_t *b, umem_log_cpu_t *umc)
2358 if (addr >= umc[i].umc_low && addr < umc[i].umc_high)
2380 umem_log_cpu_t *umc;
2400 umc = mdb_zalloc(sizeof (umem_log_cpu_t) * umem_max_ncpus,
2410 umc[i].umc_low = clh.clh_chunk * lh.lh_chunksize +
2412 umc[i].umc_high = (uintptr_t)clh.clh_current;
2435 (void) umem_log_walk(addr, bp, umc);
2440 if (mdb_walk("umem_log", (mdb_walk_cb_t)umem_log_walk, umc) == -1) {
3561 umc_add(uintptr_t addr, const umem_cache_t *cp, umclist_t *umc)
3566 if (umc->umc_name == NULL ||
3567 strcmp(cp->cache_name, umc->umc_name) == 0) {
3572 if (umc->umc_nelems >= umc->umc_size) {
3573 s = umc->umc_size ? umc->umc_size * 2 : 256;
3576 bcopy(umc->umc_caches, p,
3577 sizeof (uintptr_t) * umc->umc_size);
3579 umc->umc_caches = p;
3580 umc->umc_size = s;
3583 umc->umc_caches[umc->umc_nelems++] = addr;
3584 return (umc->umc_name ? WALK_DONE : WALK_NEXT);
3772 umclist_t umc;
3778 bzero(&umc, sizeof (umc));
3791 oelems = umc.umc_nelems;
3792 umc.umc_name = argv->a_un.a_str;
3793 (void) mdb_walk("umem_cache", (mdb_walk_cb_t)umc_add, &umc);
3795 if (umc.umc_nelems == oelems) {
3796 mdb_warn("unknown umem cache: %s\n", umc.umc_name);
3812 umc.umc_name = NULL; /* match all cache names */
3813 (void) mdb_walk("umem_cache", (mdb_walk_cb_t)umc_add, &umc);
3816 for (i = 0; i < umc.umc_nelems; i++) {
3817 uintptr_t cp = umc.umc_caches[i];