Lines Matching refs:hndl

95 _tnfctl_lmap_update(tnfctl_handle_t *hndl, boolean_t *lmap_ok,  in _tnfctl_lmap_update()  argument
104 for (cur_obj = hndl->objlist; cur_obj; cur_obj = cur_obj->next) { in _tnfctl_lmap_update()
110 miscstat = hndl->p_obj_iter(hndl->proc_p, per_loadobj, hndl); in _tnfctl_lmap_update()
119 if ((hndl->mode == INDIRECT_MODE) || in _tnfctl_lmap_update()
120 (hndl->mode == INTERNAL_MODE)) in _tnfctl_lmap_update()
123 assert(hndl->mode == DIRECT_MODE); in _tnfctl_lmap_update()
144 for (cur_obj = hndl->objlist; cur_obj; cur_obj = cur_obj->next) { in _tnfctl_lmap_update()
159 for (cur_obj = hndl->objlist; cur_obj; in _tnfctl_lmap_update()
175 _tnfctl_find_all_probes(tnfctl_handle_t *hndl) in _tnfctl_find_all_probes() argument
183 cur_obj = hndl->objlist; in _tnfctl_find_all_probes()
194 prexstat = unlink_targ_obj_probes(hndl, cur_obj); in _tnfctl_find_all_probes()
202 hndl->objlist = cur_obj; in _tnfctl_find_all_probes()
211 prexstat = get_num_probes(hndl, cur_obj, &num_probes); in _tnfctl_find_all_probes()
220 prexstat = read_probes_in_obj(hndl, cur_obj, in _tnfctl_find_all_probes()
221 num_probes, hndl->num_probes); in _tnfctl_find_all_probes()
224 cur_obj->min_probe_num = hndl->num_probes; in _tnfctl_find_all_probes()
226 hndl->num_probes += num_probes; in _tnfctl_find_all_probes()
228 prexstat = link_targ_obj_probes(hndl, cur_obj); in _tnfctl_find_all_probes()
238 for (cur_obj = hndl->objlist; cur_obj; cur_obj = cur_obj->next) { in _tnfctl_find_all_probes()
247 if (saw_new_probes && hndl->create_func) { in _tnfctl_find_all_probes()
248 for (cur_obj = hndl->objlist; cur_obj; in _tnfctl_find_all_probes()
258 hndl->create_func(hndl, probe_handle); in _tnfctl_find_all_probes()
270 _tnfctl_free_objs_and_probes(tnfctl_handle_t *hndl) in _tnfctl_free_objs_and_probes() argument
275 obj = hndl->objlist; in _tnfctl_free_objs_and_probes()
282 hndl->objlist = NULL; in _tnfctl_free_objs_and_probes()
316 _tnfctl_probes_traverse(tnfctl_handle_t *hndl, in _tnfctl_probes_traverse() argument
325 LOCK_SYNC(hndl, prexstat, release_lock); in _tnfctl_probes_traverse()
327 for (obj = hndl->objlist; obj; obj = obj->next) { in _tnfctl_probes_traverse()
329 prexstat = (*func_p) (hndl, &(obj->probes[j]), in _tnfctl_probes_traverse()
333 UNLOCK(hndl, release_lock); in _tnfctl_probes_traverse()
340 UNLOCK(hndl, release_lock); in _tnfctl_probes_traverse()
352 tnfctl_handle_t *hndl = cd; in per_loadobj() local
355 if (entry_p = loadobj_find(hndl, obj)) { in per_loadobj()
391 if (hndl->objlist == NULL) { in per_loadobj()
392 hndl->objlist = entry_p; in per_loadobj()
395 next_p = hndl->objlist; in per_loadobj()
411 loadobj_find(tnfctl_handle_t *hndl, const tnfctl_ind_obj_info_t *this_obj) in loadobj_find() argument
415 for (obj = hndl->objlist; obj; obj = obj->next) { in loadobj_find()
426 get_num_probes(tnfctl_handle_t *hndl, objlist_t *obj, int *num_probes) in get_num_probes() argument
458 read_probes_in_obj(tnfctl_handle_t *hndl, objlist_t *obj, ulong_t num_probes, in read_probes_in_obj() argument
467 largs2.la_hndl = hndl; in read_probes_in_obj()
514 tnfctl_handle_t *hndl = largs2_p->la_hndl; in read_a_probe() local
519 assert((hndl->mode == INTERNAL_MODE) ? in read_a_probe()
533 miscstat = hndl->p_read(hndl->proc_p, addr, in read_a_probe()
547 prexstat = _tnfctl_readstr_targ(hndl, attrs, &prbctl_p->attr_string); in read_a_probe()
566 prbctl_p->probe_handle->next = hndl->probe_handle_list_head; in read_a_probe()
567 hndl->probe_handle_list_head = prbctl_p->probe_handle; in read_a_probe()
577 (tnf_probe_func_t) hndl->endfunc; in read_a_probe()
579 (tnf_probe_func_t) hndl->commitfunc; in read_a_probe()
581 (tnf_probe_alloc_func_t) hndl->allocfunc; in read_a_probe()
587 miscstat = hndl->p_write(hndl->proc_p, addr, in read_a_probe()
606 link_targ_obj_probes(tnfctl_handle_t *hndl, objlist_t *cur) in link_targ_obj_probes() argument
617 cur_tmp = hndl->objlist; in link_targ_obj_probes()
638 miscstat = hndl->p_write(hndl->proc_p, probe_p->addr + in link_targ_obj_probes()
648 next_addr = hndl->probelist_head; in link_targ_obj_probes()
657 miscstat = hndl->p_write(hndl->proc_p, next_addr, in link_targ_obj_probes()
671 miscstat = hndl->p_write(hndl->proc_p, probe_p->addr + in link_targ_obj_probes()
684 unlink_targ_obj_probes(tnfctl_handle_t *hndl, objlist_t *cur) in unlink_targ_obj_probes() argument
694 cur_tmp = hndl->objlist; in unlink_targ_obj_probes()
719 next_addr = hndl->probelist_head; in unlink_targ_obj_probes()
728 miscstat = hndl->p_write(hndl->proc_p, next_addr, in unlink_targ_obj_probes()
740 _tnfctl_flush_a_probe(tnfctl_handle_t *hndl, prbctlref_t *ref_p, size_t offset, in _tnfctl_flush_a_probe() argument
756 if (hndl->mode == KERNEL_MODE) { in _tnfctl_flush_a_probe()
757 prexstat = _tnfctl_prbk_flush(hndl, ref_p); in _tnfctl_flush_a_probe()
761 miscstat = hndl->p_write(hndl->proc_p, in _tnfctl_flush_a_probe()