Lines Matching refs:kg
2280 kgrep_walk_seg(uintptr_t addr, const struct seg *seg, kgrep_walk_data_t *kg)
2284 if (addr == kg->kg_kvseg || addr == kg->kg_kvseg32 ||
2285 addr == kg->kg_kvseg_core)
2288 if ((uintptr_t)seg->s_ops == kg->kg_segkpm)
2291 return (kg->kg_cb(base, base + seg->s_size, kg->kg_cbdata));
2296 kgrep_walk_vseg(uintptr_t addr, const vmem_seg_t *seg, kgrep_walk_data_t *kg)
2302 if (seg->vs_start == kg->kg_heap_lp_base &&
2303 seg->vs_end == kg->kg_heap_lp_end)
2306 return (kg->kg_cb(seg->vs_start, seg->vs_end, kg->kg_cbdata));
2311 kgrep_xwalk_vseg(uintptr_t addr, const vmem_seg_t *seg, kgrep_walk_data_t *kg)
2313 return (kg->kg_cb(seg->vs_start, seg->vs_end, kg->kg_cbdata));
2317 kgrep_walk_vmem(uintptr_t addr, const vmem_t *vmem, kgrep_walk_data_t *kg)
2330 if (mdb_pwalk("vmem_alloc", walk_vseg, kg, addr) == -1) {
2342 kgrep_walk_data_t kg;
2375 if (mdb_readvar(&kg.kg_heap_lp_base, "heap_lp_base") == -1) {
2380 if (mdb_readvar(&kg.kg_heap_lp_end, "heap_lp_end") == -1) {
2385 kg.kg_cb = cb;
2386 kg.kg_cbdata = cbdata;
2387 kg.kg_kvseg = (uintptr_t)kvseg.st_value;
2388 kg.kg_kvseg32 = (uintptr_t)kvseg32.st_value;
2389 kg.kg_kvseg_core = (uintptr_t)kvseg_core.st_value;
2390 kg.kg_segkpm = (uintptr_t)segkpm.st_value;
2393 &kg, kas.st_value) == -1) {
2398 if (mdb_walk("vmem", (mdb_walk_cb_t)kgrep_walk_vmem, &kg) == -1) {