Lines Matching defs:hndl

60 tnfctl_register_funcs(tnfctl_handle_t *hndl,
66 if (hndl->destroy_func) {
72 prexstat = _tnfctl_probes_traverse(hndl,
79 hndl->create_func = create_func;
80 hndl->destroy_func = destroy_func;
84 prexstat = _tnfctl_probes_traverse(hndl,
94 _tnfctl_destructor_wrapper(tnfctl_handle_t *hndl, prbctlref_t *probe, void *cd)
96 assert(hndl->destroy_func);
97 hndl->destroy_func(probe->probe_handle->client_registered_data);
103 _tnfctl_creator_wrapper(tnfctl_handle_t *hndl, prbctlref_t *probe, void *cd)
107 assert(hndl->create_func);
109 p_handle->client_registered_data = hndl->create_func(hndl, p_handle);
115 tnfctl_probe_apply(tnfctl_handle_t *hndl, tnfctl_probe_op_t func_p,
123 prexstat = _tnfctl_probes_traverse(hndl, apply_func, &pr_args);
128 tnfctl_probe_apply_ids(tnfctl_handle_t *hndl, ulong_t probe_count,
140 LOCK_SYNC(hndl, prexstat, release_lock);
145 obj_p = hndl->objlist;
160 prexstat = func_p(hndl, probe->probe_handle, calldata);
167 UNLOCK(hndl, release_lock);
172 tnfctl_probe_state_get(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl,
181 if (hndl->mode == KERNEL_MODE) {
182 prexstat = _tnfctl_refresh_kernel(hndl);
188 LOCK_SYNC(hndl, prexstat, release_lock);
201 (tnf_probe_func_t) hndl->commitfunc) ? B_TRUE : B_FALSE;
206 if (hndl->mode == KERNEL_MODE) {
214 prexstat = _tnfctl_comb_decode(hndl, (uintptr_t) prbctl_p->probe_func,
230 UNLOCK(hndl, release_lock);
235 check_operation(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl)
239 if (hndl->mode == KERNEL_MODE) {
240 prexstat = _tnfctl_refresh_kernel(hndl);
243 } else if (hndl->trace_buf_state == TNFCTL_BUF_NONE) {
248 if (hndl->trace_buf_state == TNFCTL_BUF_BROKEN)
259 tnfctl_probe_enable(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl, void *cd)
266 LOCK_SYNC(hndl, prexstat, release_lock);
268 prexstat = check_operation(hndl, probe_hndl);
273 prbctl_p->test_func = (tnf_probe_test_func_t) hndl->testfunc;
274 prexstat = _tnfctl_flush_a_probe(hndl, probe_hndl->probe_p,
279 UNLOCK(hndl, release_lock);
284 tnfctl_probe_disable(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl,
292 LOCK_SYNC(hndl, prexstat, release_lock);
294 prexstat = check_operation(hndl, probe_hndl);
300 prexstat = _tnfctl_flush_a_probe(hndl, probe_hndl->probe_p,
305 UNLOCK(hndl, release_lock);
310 tnfctl_probe_trace(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl, void *cd)
317 LOCK_SYNC(hndl, prexstat, release_lock);
319 prexstat = check_operation(hndl, probe_hndl);
324 prbctl_p->commit_func = (tnf_probe_func_t) hndl->commitfunc;
325 prexstat = _tnfctl_flush_a_probe(hndl, probe_hndl->probe_p,
331 UNLOCK(hndl, release_lock);
336 tnfctl_probe_untrace(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl,
344 LOCK_SYNC(hndl, prexstat, release_lock);
346 prexstat = check_operation(hndl, probe_hndl);
351 prbctl_p->commit_func = (tnf_probe_func_t) hndl->rollbackfunc;
352 prexstat = _tnfctl_flush_a_probe(hndl, probe_hndl->probe_p,
358 UNLOCK(hndl, release_lock);
363 tnfctl_probe_connect(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl,
372 if (hndl->mode == KERNEL_MODE)
376 LOCK_SYNC(hndl, prexstat, release_lock);
378 prexstat = check_operation(hndl, probe_hndl);
388 prexstat = _tnfctl_sym_obj_find(hndl, lib_base_name, func,
391 prexstat = _tnfctl_sym_find(hndl, func, &func_addr);
398 prexstat = _tnfctl_comb_build(hndl, PRB_COMB_CHAIN,
404 prexstat = _tnfctl_flush_a_probe(hndl, probe_hndl->probe_p,
410 UNLOCK(hndl, release_lock);
415 tnfctl_probe_disconnect_all(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl,
422 if (hndl->mode == KERNEL_MODE)
426 LOCK_SYNC(hndl, prexstat, release_lock);
428 prexstat = check_operation(hndl, probe_hndl);
433 prbctl_p->probe_func = (tnf_probe_func_t) hndl->endfunc;
434 prexstat = _tnfctl_flush_a_probe(hndl, probe_hndl->probe_p,
440 UNLOCK(hndl, release_lock);
449 apply_func(tnfctl_handle_t *hndl, prbctlref_t *probe, void *cd)
455 prexstat = (*(args->func_p))(hndl, probe->probe_handle, args->calldata);