Lines Matching refs:kg
77 kgrep_data_t *kg = kg_arg;
78 size_t pagesize = kg->kg_pagesize;
79 uintptr_t pattern = kg->kg_pattern;
80 uintptr_t *page = kg->kg_page;
103 kgrep_cb(addr + offset, NULL, kg->kg_cbtype);
107 kg->kg_seen = 1;
124 kgrep_data_t *kg = kg_arg; \
126 uintbits_t pattern = kg->kg_pattern; \
127 uintbits_t dist = kg->kg_dist; \
128 uintbits_t mask = kg->kg_mask; \
129 uintptr_t minaddr = kg->kg_minaddr; \
130 uintptr_t maxaddr = kg->kg_maxaddr; \
131 size_t pagesize = kg->kg_pagesize; \
132 uintbits_t *page = (uintbits_t *)kg->kg_page; \
171 kgrep_cb(addr + offset, &out, kg->kg_cbtype); \
175 kg->kg_seen = 1; \
232 kgrep_data_t kg;
299 (void) memset(&kg, '\0', sizeof (kg));
300 kg.kg_page = mdb_alloc(pagesize, UM_SLEEP | UM_GC);
301 kg.kg_pagesize = pagesize;
302 kg.kg_pattern = pattern;
303 kg.kg_mask = mask;
304 kg.kg_dist = dist;
305 kg.kg_minaddr = minaddr;
306 kg.kg_maxaddr = maxaddr;
310 kg.kg_cbtype = KG_PIPE;
312 kg.kg_cbtype = KG_VERBOSE;
314 kg.kg_cbtype = KG_BASE;
345 * Invoke the target, which should invoke func(start, end, &kg) for
349 ret = kgrep_subr(func, &kg);
351 if (ret == DCMD_OK && !kg.kg_seen)