Searched defs:hndl (Results 1 - 25 of 36) sorted by relevance

12

/illumos-gate/usr/src/lib/libtnfctl/
H A Dtargmem.c46 _tnfctl_targmem_alloc(tnfctl_handle_t *hndl, size_t size, uintptr_t *addr_p) argument
51 assert(hndl->memseg_p != NULL);
55 miscstat = hndl->p_read(hndl->proc_p, hndl->memseg_p, &memseg,
64 miscstat = hndl->p_write(hndl->proc_p, hndl->memseg_p,
H A Dchecklib.c43 tnfctl_check_libs(tnfctl_handle_t *hndl) argument
49 if (hndl->mode == KERNEL_MODE) {
50 prexstat = _tnfctl_refresh_kernel(hndl);
54 /* hndl refers to a process */
57 prexstat = _tnfctl_refresh_process(hndl, &lmap_ok, &dl_evt);
70 * being single-threaded - that is why we can check "hndl->in_objlist"
83 _tnfctl_lock_libs(tnfctl_handle_t *hndl, boolean_t *release_lock) argument
93 assert(hndl->mode == INTERNAL_MODE);
95 if (hndl->in_objlist == B_TRUE) {
106 hndl
115 _tnfctl_unlock_libs(tnfctl_handle_t *hndl, boolean_t release_lock) argument
142 _tnfctl_sync_lib_list(tnfctl_handle_t *hndl) argument
[all...]
H A Dcontinue.c40 static tnfctl_errcode_t _tnfctl_continue(tnfctl_handle_t *hndl,
42 static tnfctl_errcode_t enable_target_state(tnfctl_handle_t *hndl,
44 static tnfctl_errcode_t disable_target_state(tnfctl_handle_t *hndl);
52 tnfctl_continue(tnfctl_handle_t *hndl, tnfctl_event_t *evt, argument
67 if (hndl->mode != DIRECT_MODE)
70 proc_p = hndl->proc_p;
96 prexstat = _tnfctl_continue(hndl, &my_evt, &oldmask,
108 _tnfctl_free_objs_and_probes(hndl);
147 prexstat = _tnfctl_refresh_process(hndl, &lmapok, &dl_evt);
168 _tnfctl_continue(tnfctl_handle_t *hndl, tnfctl_event_ argument
274 enable_target_state(tnfctl_handle_t *hndl, boolean_t watch_forks) argument
317 disable_target_state(tnfctl_handle_t *hndl) argument
[all...]
H A Delf.c47 static tnfctl_errcode_t dynsec_num(tnfctl_handle_t *hndl, uintptr_t baseaddr,
77 _tnfctl_elf_dbgent(tnfctl_handle_t *hndl, uintptr_t * entaddr_p) argument
92 prbstat = prb_mainobj_get(hndl->proc_p, &objfd, &baseaddr);
105 prexstat = dynsec_num(hndl, baseaddr, objfd, &num_dynentries);
120 miscstat = hndl->p_read(hndl->proc_p, dynamic_addr, dynam_tab,
189 dynsec_num(tnfctl_handle_t *hndl, uintptr_t baseaddr, argument
H A Dopen.c44 static tnfctl_errcode_t step_to_end_of_exec(tnfctl_handle_t *hndl);
422 * CAUTION: could side effect hndl->proc_p
425 step_to_end_of_exec(tnfctl_handle_t *hndl) argument
432 proc_p = hndl->proc_p;
433 pid = hndl->p_getpid(proc_p);
472 hndl->proc_p = proc_p;
H A Dsym.c123 _tnfctl_sym_find(tnfctl_handle_t *hndl, const char *symname, uintptr_t *symaddr) argument
134 LOCK(hndl, prexstat, release_lock);
137 for (obj = hndl->objlist; obj; obj = obj->next) {
154 UNLOCK(hndl, release_lock);
167 _tnfctl_sym_obj_find(tnfctl_handle_t *hndl, const char *lib_base_name, argument
174 assert((hndl->mode == INTERNAL_MODE) ?
183 for (obj = hndl->objlist; obj; obj = obj->next) {
221 _tnfctl_sym_findname(tnfctl_handle_t *hndl, uintptr_t symaddr, argument
233 LOCK(hndl, prexstat, release_lock);
236 for (obj = hndl
[all...]
H A Dinternal.c60 static tnfctl_errcode_t inprocess_get_dtdebug(void *hndl, uintptr_t *ret_val);
176 inprocess_get_dtdebug(void *hndl, uintptr_t *ret_val) argument
H A Dkernel_int.c75 static tnfctl_errcode_t alloc_probe_space(tnfctl_handle_t *hndl, int maxprobe);
349 _tnfctl_prbk_flush(tnfctl_handle_t *hndl, prbctlref_t *p) argument
356 if (ioctl(hndl->kfd, TIFIOCSPROBEVALS, &probebuf) < 0)
365 _tnfctl_refresh_kernel(tnfctl_handle_t *hndl) argument
374 prexstat = prbk_get_buf_attrs(hndl);
382 if (ioctl(hndl->kfd, TIFIOCGMAXPROBE, &maxprobe) < 0)
384 if (maxprobe == hndl->num_probes) {
389 prexstat = alloc_probe_space(hndl, maxprobe);
394 obj_p = hndl->objlist;
415 if (ioctl(hndl
469 alloc_probe_space(tnfctl_handle_t *hndl, int maxprobe) argument
[all...]
H A Dprobes_ext.c60 tnfctl_register_funcs(tnfctl_handle_t *hndl, argument
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) argument
96 assert(hndl->destroy_func);
97 hndl->destroy_func(probe->probe_handle->client_registered_data);
103 _tnfctl_creator_wrapper(tnfctl_handle_t *hndl, prbctlref_ argument
115 tnfctl_probe_apply(tnfctl_handle_t *hndl, tnfctl_probe_op_t func_p, void *calldata) argument
128 tnfctl_probe_apply_ids(tnfctl_handle_t *hndl, ulong_t probe_count, ulong_t *probe_ids, tnfctl_probe_op_t func_p, void *calldata) argument
172 tnfctl_probe_state_get(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl, tnfctl_probe_state_t *state_p) argument
235 check_operation(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl) argument
259 tnfctl_probe_enable(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl, void *cd) argument
284 tnfctl_probe_disable(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl, void *cd) argument
310 tnfctl_probe_trace(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl, void *cd) argument
336 tnfctl_probe_untrace(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl, void *cd) argument
363 tnfctl_probe_connect(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl, const char *lib_base_name, const char *func) argument
415 tnfctl_probe_disconnect_all(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_hndl, void *cd) argument
449 apply_func(tnfctl_handle_t *hndl, prbctlref_t *probe, void *cd) argument
[all...]
H A Dcomb.c103 static tnfctl_errcode_t decode(tnfctl_handle_t *hndl, uintptr_t addr,
105 static boolean_t find(tnfctl_handle_t *hndl, comb_op_t op, uintptr_t down,
107 static tnfctl_errcode_t build(tnfctl_handle_t *hndl, comb_op_t op,
109 static tnfctl_errcode_t add(tnfctl_handle_t *hndl, comb_op_t op, uintptr_t down,
113 static tnfctl_errcode_t iscomb(tnfctl_handle_t *hndl, uintptr_t addr,
115 static tnfctl_errcode_t findname(tnfctl_handle_t *hndl, uintptr_t addr,
128 _tnfctl_comb_build(tnfctl_handle_t *hndl, comb_op_t op, argument
138 if (find(hndl, op, down, next, comb_p)) {
146 prexstat = build(hndl, op, down, next, comb_p);
162 _tnfctl_comb_decode(tnfctl_handle_t *hndl, uintptr_ argument
188 decode(tnfctl_handle_t *hndl, uintptr_t addr, char ***func_names, uintptr_t **func_addrs) argument
326 iscomb(tnfctl_handle_t *hndl, uintptr_t addr, uintptr_t *down_p, uintptr_t *next_p, boolean_t *ret_val) argument
439 findname(tnfctl_handle_t *hndl, uintptr_t addr, char **ret_name) argument
480 find(tnfctl_handle_t *hndl, comb_op_t op, uintptr_t down, uintptr_t next, uintptr_t * comb_p) argument
504 add(tnfctl_handle_t *hndl, comb_op_t op, uintptr_t down, uintptr_t next, uintptr_t comb) argument
567 build(tnfctl_handle_t *hndl, comb_op_t op, uintptr_t down, uintptr_t next, uintptr_t *comb_p) argument
[all...]
H A Dprobes.c95 _tnfctl_lmap_update(tnfctl_handle_t *hndl, boolean_t *lmap_ok, argument
104 for (cur_obj = hndl->objlist; cur_obj; cur_obj = cur_obj->next) {
110 miscstat = hndl->p_obj_iter(hndl->proc_p, per_loadobj, hndl);
119 if ((hndl->mode == INDIRECT_MODE) ||
120 (hndl->mode == INTERNAL_MODE))
123 assert(hndl->mode == DIRECT_MODE);
144 for (cur_obj = hndl->objlist; cur_obj; cur_obj = cur_obj->next) {
159 for (cur_obj = hndl
175 _tnfctl_find_all_probes(tnfctl_handle_t *hndl) argument
270 _tnfctl_free_objs_and_probes(tnfctl_handle_t *hndl) argument
316 _tnfctl_probes_traverse(tnfctl_handle_t *hndl, _tnfctl_traverse_probe_func_t func_p, void *calldata_p) argument
352 tnfctl_handle_t *hndl = cd; local
411 loadobj_find(tnfctl_handle_t *hndl, const tnfctl_ind_obj_info_t *this_obj) argument
426 get_num_probes(tnfctl_handle_t *hndl, objlist_t *obj, int *num_probes) argument
458 read_probes_in_obj(tnfctl_handle_t *hndl, objlist_t *obj, ulong_t num_probes, ulong_t probe_base_num) argument
514 tnfctl_handle_t *hndl = largs2_p->la_hndl; local
606 link_targ_obj_probes(tnfctl_handle_t *hndl, objlist_t *cur) argument
684 unlink_targ_obj_probes(tnfctl_handle_t *hndl, objlist_t *cur) argument
740 _tnfctl_flush_a_probe(tnfctl_handle_t *hndl, prbctlref_t *ref_p, size_t offset, size_t size) argument
[all...]
H A Dutil.c81 static tnfctl_errcode_t find_test_func(tnfctl_handle_t *hndl);
82 static tnfctl_errcode_t find_target_syms(tnfctl_handle_t *hndl);
83 static tnfctl_errcode_t find_trace_file_info(tnfctl_handle_t *hndl);
84 static tnfctl_errcode_t check_trace_error(tnfctl_handle_t *hndl);
93 _tnfctl_refresh_process(tnfctl_handle_t *hndl, boolean_t *lmap_ok, argument
99 assert(hndl->mode != KERNEL_MODE);
102 LOCK(hndl, prexstat, release_lock);
104 prexstat = check_trace_error(hndl);
112 prexstat = _tnfctl_lmap_update(hndl, lmap_ok, dl_evt);
117 prexstat = find_test_func(hndl);
137 _tnfctl_set_state(tnfctl_handle_t *hndl) argument
191 find_test_func(tnfctl_handle_t *hndl) argument
237 check_trace_error(tnfctl_handle_t *hndl) argument
285 find_target_syms(tnfctl_handle_t *hndl) argument
385 _tnfctl_create_tracefile(tnfctl_handle_t *hndl, const char *trace_file_name, uint_t trace_file_size) argument
522 find_trace_file_info(tnfctl_handle_t *hndl) argument
623 _tnfctl_readstr_targ(tnfctl_handle_t *hndl, uintptr_t addr, char **outstr_pp) argument
[all...]
/illumos-gate/usr/src/cmd/svc/mfstscan/
H A Dmfstscan.c66 scf_handle_t *hndl = NULL; local
91 if ((hndl = scf_handle_create(SCF_VERSION)) == NULL)
95 if (scf_handle_bind(hndl) != SCF_SUCCESS)
117 status = find_manifests(hndl, argv[i], &manifests,
140 if (hndl != NULL) {
141 (void) scf_handle_unbind(hndl);
142 (void) scf_handle_destroy(hndl);
/illumos-gate/usr/src/cmd/svc/common/
H A Dmanifest_find.c252 find_manifests(scf_handle_t *hndl, const char *dir, argument
266 tsdp->tsd_hndl = hndl;
H A Dmanifest_hash.c116 mhash_retrieve_entry(scf_handle_t *hndl, const char *name, uchar_t *hash, argument
136 if ((scope = scf_scope_create(hndl)) == NULL ||
137 (svc = scf_service_create(hndl)) == NULL ||
138 (pg = scf_pg_create(hndl)) == NULL ||
139 (prop = scf_property_create(hndl)) == NULL ||
140 (val = scf_value_create(hndl)) == NULL) {
145 if (scf_handle_get_local_scope(hndl, scope) < 0) {
232 mhash_store_entry(scf_handle_t *hndl, const char *name, const char *fname, argument
251 if ((scope = scf_scope_create(hndl)) == NULL ||
252 (svc = scf_service_create(hndl))
581 mhash_test_file(scf_handle_t *hndl, const char *file, uint_t is_profile, char **pnamep, uchar_t *hashbuf) argument
[all...]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpc_generic.c422 void *hndl; local
445 hndl = setnetconfig();
446 if (hndl == NULL)
460 while (nconf = getnetconfig(hndl)) {
472 (void) endnetconfig(hndl);
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_scf.h70 scf_handle_t *hndl; /* base scf handle */ member in struct:asi_scfhandle
/illumos-gate/usr/src/cmd/ipf/svc/
H A Dipfd.c152 repository_rebind(scf_handle_t *hndl) argument
156 (void) scf_handle_unbind(hndl);
157 while ((scf_handle_bind(hndl)) != 0) {
/illumos-gate/usr/src/uts/common/syscall/
H A Drctlsys.c225 rctl_hndl_t hndl; local
251 if ((hndl = rctl_hndl_lookup(kname)) == -1) {
280 if (rctl_set_find(rset, hndl, &rctl) == -1) {
306 if (ret = rctl_local_get(hndl, NULL, nval, curproc)) {
333 ret = rctl_local_get(hndl, oval, nval, curproc);
391 rctl_hndl_t hndl; local
421 if ((hndl = rctl_hndl_lookup(kname)) == -1) {
428 rde = rctl_dict_lookup_hndl(hndl);
587 if (ret = rctl_local_get(hndl, NULL, rval1, pp)) {
600 } while (rctl_local_get(hndl, rval
891 rctl_hndl_t hndl; local
[all...]
/illumos-gate/usr/src/lib/libscf/common/
H A Dhighlevel.c372 scf_default_secflags(scf_handle_t *hndl, scf_secflags_t *flags) argument
402 if ((val = scf_value_create(hndl)) == NULL)
405 if ((prop = scf_property_create(hndl)) == NULL) {
414 if (scf_handle_decode_fmri(hndl, pfmri,
/illumos-gate/usr/src/cmd/tnf/prex/
H A Dlist.c86 static tnfctl_errcode_t listprobe(tnfctl_handle_t *hndl,
88 static tnfctl_errcode_t probescan(tnfctl_handle_t *hndl,
301 probescan(tnfctl_handle_t *hndl, tnfctl_probe_t *ref_p, void *calldata_p) argument
510 listprobe(tnfctl_handle_t *hndl, tnfctl_probe_t *ref_p, void *calldata_p) argument
H A Dmain.c117 static tnfctl_errcode_t check_trace_error(tnfctl_handle_t *hndl);
120 static tnfctl_errcode_t set_tracefile(tnfctl_handle_t *hndl);
121 static tnfctl_errcode_t set_probe_discovery_callback(tnfctl_handle_t *hndl);
122 static void * perprobe(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_p);
123 static tnfctl_errcode_t perprobe2(tnfctl_handle_t *hndl,
346 check_trace_error(tnfctl_handle_t *hndl) argument
351 err = tnfctl_trace_attrs_get(hndl, &trace_attrs);
386 tnfctl_handle_t *hndl; member in struct:__anon1887
394 tnfctl_handle_t *hndl = args_p->hndl; local
452 perprobe(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_p) argument
469 set_probe_discovery_callback(tnfctl_handle_t *hndl) argument
481 perprobe2(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_p, void *cd) argument
499 process_cmd(tnfctl_handle_t *hndl, cmd_t *cmd) argument
718 set_tracefile(tnfctl_handle_t *hndl) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Drctl.c76 rctl_hndl_t hndl; local
90 hndl = (rctl_hndl_t)argp->a_un.a_val;
92 hndl = (rctl_hndl_t)mdb_strtoull(argp->a_un.a_str);
94 if (rctl.rc_id != hndl)
174 rctl_hndl_t hndl; member in struct:dict_data
182 if (data->hndl == entry->rcd_id) {
213 rdict.hndl = 0;
222 rdict.hndl = (rctl_hndl_t)argp->a_un.a_val;
224 rdict.hndl =
263 if (rdict.hndl !
[all...]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dfork.c710 scf_handle_t *hndl = NULL; local
714 if (hndl == NULL)
715 hndl = libscf_handle_create_bound(SCF_VERSION);
717 if (hndl == NULL) {
730 inst = safe_scf_instance_create(hndl);
732 if (scf_handle_decode_fmri(hndl, SCF_INSTANCE_EMI, NULL, NULL,
740 libscf_handle_rebind(hndl);
760 switch (r = _restarter_commit_states(hndl, &idata, state,
766 libscf_handle_rebind(hndl);
786 scf_handle_destroy(hndl);
810 scf_handle_t *hndl = NULL; local
[all...]
/illumos-gate/usr/src/cmd/svc/svcprop/
H A Dsvcprop.c100 static scf_handle_t *hndl; variable
271 if ((iter = scf_iter_create(hndl)) == NULL ||
272 (val = scf_value_create(hndl)) == NULL)
315 if ((prop = scf_property_create(hndl)) == NULL ||
316 (iter = scf_iter_create(hndl)) == NULL)
380 scf_snapshot_t *snap = scf_snapshot_create(hndl);
426 if ((pg = scf_pg_create(hndl)) == NULL ||
427 (iter = scf_iter_create(hndl)) == NULL)
477 if ((pg = scf_pg_create(hndl)) == NULL ||
478 (prop = scf_property_create(hndl))
[all...]

Completed in 208 milliseconds

12