/titanic_41/usr/src/lib/libtnfctl/ |
H A D | tnfctl.h | 67 typedef struct tnfctl_handle tnfctl_handle_t; typedef 194 tnfctl_handle_t **); /* return value */ 199 tnfctl_handle_t **); /* return value */ 207 tnfctl_handle_t **); /* return value */ 209 tnfctl_errcode_t tnfctl_internal_open(tnfctl_handle_t **); 211 tnfctl_errcode_t tnfctl_kernel_open(tnfctl_handle_t **); 217 tnfctl_handle_t *, 219 tnfctl_handle_t **); /* return value - if fork, handle on child */ 224 tnfctl_errcode_t tnfctl_check_libs(tnfctl_handle_t *); 229 tnfctl_errcode_t tnfctl_close(tnfctl_handle_t *, tnfctl_targ_op_t); [all …]
|
H A D | kernel_int.h | 41 tnfctl_errcode_t _tnfctl_prbk_init(tnfctl_handle_t *); 42 tnfctl_errcode_t _tnfctl_prbk_close(tnfctl_handle_t *); 46 tnfctl_errcode_t _tnfctl_prbk_buffer_alloc(tnfctl_handle_t *, int); 47 tnfctl_errcode_t _tnfctl_prbk_buffer_dealloc(tnfctl_handle_t *); 48 tnfctl_errcode_t _tnfctl_prbk_set_tracing(tnfctl_handle_t *, boolean_t); 49 tnfctl_errcode_t _tnfctl_prbk_set_pfilter_mode(tnfctl_handle_t *, boolean_t); 50 tnfctl_errcode_t _tnfctl_prbk_get_pfilter_list(tnfctl_handle_t *, pid_t **, 52 tnfctl_errcode_t _tnfctl_prbk_pfilter_add(tnfctl_handle_t *, pid_t); 53 tnfctl_errcode_t _tnfctl_prbk_pfilter_delete(tnfctl_handle_t *, pid_t); 54 tnfctl_errcode_t _tnfctl_prbk_flush(tnfctl_handle_t *, prbctlref_t *); [all …]
|
H A D | tnfctl_int.h | 162 void *(*create_func)(tnfctl_handle_t *, tnfctl_probe_t *); 226 (*_tnfctl_traverse_probe_func_t)(tnfctl_handle_t *, prbctlref_t *, void *); 229 tnfctl_errcode_t _tnfctl_lmap_update(tnfctl_handle_t *hndl, boolean_t *lmap_ok, 233 tnfctl_errcode_t _tnfctl_refresh_process(tnfctl_handle_t *, boolean_t *, 236 tnfctl_errcode_t _tnfctl_set_state(tnfctl_handle_t *hndl); 237 tnfctl_errcode_t _tnfctl_create_tracefile(tnfctl_handle_t *hndl, 241 tnfctl_errcode_t _tnfctl_find_all_probes(tnfctl_handle_t *hndl); 242 tnfctl_errcode_t _tnfctl_probes_traverse(tnfctl_handle_t *hndl, 244 tnfctl_errcode_t _tnfctl_flush_a_probe(tnfctl_handle_t *hndl, 248 tnfctl_errcode_t _tnfctl_comb_build(tnfctl_handle_t *hndl, comb_op_t op, [all …]
|
H A D | probes_ext.c | 52 tnfctl_errcode_t _tnfctl_destructor_wrapper(tnfctl_handle_t *, 54 tnfctl_errcode_t _tnfctl_creator_wrapper(tnfctl_handle_t *, 56 static tnfctl_errcode_t apply_func(tnfctl_handle_t *, prbctlref_t *, void *); 57 static tnfctl_errcode_t check_operation(tnfctl_handle_t *, tnfctl_probe_t *); 60 tnfctl_register_funcs(tnfctl_handle_t *hndl, in tnfctl_register_funcs() 61 void *(*create_func)(tnfctl_handle_t *, tnfctl_probe_t *), in tnfctl_register_funcs() argument 94 _tnfctl_destructor_wrapper(tnfctl_handle_t *hndl, prbctlref_t *probe, void *cd) in _tnfctl_destructor_wrapper() 103 _tnfctl_creator_wrapper(tnfctl_handle_t *hndl, prbctlref_t *probe, void *cd) in _tnfctl_creator_wrapper() 115 tnfctl_probe_apply(tnfctl_handle_t *hndl, tnfctl_probe_op_t func_p, in tnfctl_probe_apply() 128 tnfctl_probe_apply_ids(tnfctl_handle_t *hndl, ulong_t probe_count, in tnfctl_probe_apply_ids() [all …]
|
H A D | kernel.c | 41 tnfctl_trace_state_set(tnfctl_handle_t *hdl, boolean_t mode) in tnfctl_trace_state_set() 51 tnfctl_filter_state_set(tnfctl_handle_t *hdl, boolean_t mode) in tnfctl_filter_state_set() 61 tnfctl_filter_list_get(tnfctl_handle_t *hdl, pid_t **pid_list, int *pid_count) in tnfctl_filter_list_get() 71 tnfctl_filter_list_add(tnfctl_handle_t *hdl, pid_t pid) in tnfctl_filter_list_add() 81 tnfctl_filter_list_delete(tnfctl_handle_t *hdl, pid_t pid) in tnfctl_filter_list_delete()
|
H A D | open.c | 44 static tnfctl_errcode_t step_to_end_of_exec(tnfctl_handle_t *hndl); 55 tnfctl_handle_t **ret_val) in tnfctl_exec_open() 57 tnfctl_handle_t *hdl; in tnfctl_exec_open() 131 tnfctl_pid_open(pid_t pid, tnfctl_handle_t **ret_val) in tnfctl_pid_open() 133 tnfctl_handle_t *hdl; in tnfctl_pid_open() 216 tnfctl_handle_t **ret_val) in tnfctl_indirect_open() 218 tnfctl_handle_t *hdl; in tnfctl_indirect_open() 258 tnfctl_kernel_open(tnfctl_handle_t **ret_val) in tnfctl_kernel_open() 260 tnfctl_handle_t *hdl; in tnfctl_kernel_open() 298 tnfctl_trace_attrs_get(tnfctl_handle_t *hdl, tnfctl_trace_attrs_t *attrs) in tnfctl_trace_attrs_get() [all …]
|
H A D | kernel_int.c | 74 static tnfctl_errcode_t prbk_get_buf_attrs(tnfctl_handle_t *hdl); 75 static tnfctl_errcode_t alloc_probe_space(tnfctl_handle_t *hndl, int maxprobe); 83 _tnfctl_prbk_init(tnfctl_handle_t *hdl) in _tnfctl_prbk_init() 111 _tnfctl_prbk_close(tnfctl_handle_t *hdl) in _tnfctl_prbk_close() 152 _tnfctl_prbk_buffer_alloc(tnfctl_handle_t *hdl, int size) in _tnfctl_prbk_buffer_alloc() 187 _tnfctl_prbk_buffer_dealloc(tnfctl_handle_t *hdl) in _tnfctl_prbk_buffer_dealloc() 220 _tnfctl_prbk_set_tracing(tnfctl_handle_t *hdl, boolean_t onoff) in _tnfctl_prbk_set_tracing() 239 _tnfctl_prbk_set_pfilter_mode(tnfctl_handle_t *hdl, boolean_t onoff) in _tnfctl_prbk_set_pfilter_mode() 253 _tnfctl_prbk_get_pfilter_list(tnfctl_handle_t *hdl, pid_t **ret_list_p, in _tnfctl_prbk_get_pfilter_list() 297 _tnfctl_prbk_pfilter_add(tnfctl_handle_t *hdl, pid_t pid_to_add) in _tnfctl_prbk_pfilter_add() [all …]
|
H A D | probes.c | 67 tnfctl_handle_t *la_hndl; 77 static objlist_t *loadobj_find(tnfctl_handle_t *, 79 static tnfctl_errcode_t get_num_probes(tnfctl_handle_t *, objlist_t *, int *); 80 static tnfctl_errcode_t read_probes_in_obj(tnfctl_handle_t *, objlist_t *, 87 static tnfctl_errcode_t link_targ_obj_probes(tnfctl_handle_t *, objlist_t *); 88 static tnfctl_errcode_t unlink_targ_obj_probes(tnfctl_handle_t *, objlist_t *); 95 _tnfctl_lmap_update(tnfctl_handle_t *hndl, boolean_t *lmap_ok, in _tnfctl_lmap_update() 175 _tnfctl_find_all_probes(tnfctl_handle_t *hndl) in _tnfctl_find_all_probes() 270 _tnfctl_free_objs_and_probes(tnfctl_handle_t *hndl) in _tnfctl_free_objs_and_probes() 316 _tnfctl_probes_traverse(tnfctl_handle_t *hndl, in _tnfctl_probes_traverse() [all …]
|
H A D | continue.c | 40 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, in tnfctl_continue() 53 tnfctl_handle_t **child_hndl) in tnfctl_continue() 168 _tnfctl_continue(tnfctl_handle_t *hndl, tnfctl_event_t *evt, sigset_t *oldmask, in _tnfctl_continue() 274 enable_target_state(tnfctl_handle_t *hndl, boolean_t watch_forks) in enable_target_state() 317 disable_target_state(tnfctl_handle_t *hndl) in disable_target_state()
|
H A D | checklib.c | 43 tnfctl_check_libs(tnfctl_handle_t *hndl) in tnfctl_check_libs() 83 _tnfctl_lock_libs(tnfctl_handle_t *hndl, boolean_t *release_lock) in _tnfctl_lock_libs() 115 _tnfctl_unlock_libs(tnfctl_handle_t *hndl, boolean_t release_lock) in _tnfctl_unlock_libs() 142 _tnfctl_sync_lib_list(tnfctl_handle_t *hndl) in _tnfctl_sync_lib_list()
|
H A D | comb.c | 103 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, in _tnfctl_comb_build() 162 _tnfctl_comb_decode(tnfctl_handle_t *hndl, uintptr_t addr, char ***func_names, in _tnfctl_comb_decode() 188 decode(tnfctl_handle_t *hndl, uintptr_t addr, char ***func_names, in decode() 326 iscomb(tnfctl_handle_t *hndl, in iscomb() [all …]
|
H A D | util.c | 81 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, in _tnfctl_refresh_process() 137 _tnfctl_set_state(tnfctl_handle_t *hndl) in _tnfctl_set_state() 191 find_test_func(tnfctl_handle_t *hndl) in find_test_func() 237 check_trace_error(tnfctl_handle_t *hndl) in check_trace_error() 285 find_target_syms(tnfctl_handle_t *hndl) in find_target_syms() 385 _tnfctl_create_tracefile(tnfctl_handle_t *hndl, const char *trace_file_name, in _tnfctl_create_tracefile() [all …]
|
H A D | elf.c | 47 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) in _tnfctl_elf_dbgent() 189 dynsec_num(tnfctl_handle_t *hndl, uintptr_t baseaddr, in dynsec_num()
|
H A D | close.c | 49 tnfctl_close(tnfctl_handle_t *hdl, tnfctl_targ_op_t action) in tnfctl_close() 144 _tnfctl_external_releaselock(tnfctl_handle_t *hdl) in _tnfctl_external_releaselock()
|
H A D | sym.c | 123 _tnfctl_sym_find(tnfctl_handle_t *hndl, const char *symname, uintptr_t *symaddr) in _tnfctl_sym_find() 167 _tnfctl_sym_obj_find(tnfctl_handle_t *hndl, const char *lib_base_name, in _tnfctl_sym_obj_find() 221 _tnfctl_sym_findname(tnfctl_handle_t *hndl, uintptr_t symaddr, in _tnfctl_sym_findname()
|
H A D | targmem.c | 46 _tnfctl_targmem_alloc(tnfctl_handle_t *hndl, size_t size, uintptr_t *addr_p) in _tnfctl_targmem_alloc()
|
H A D | internal.c | 83 tnfctl_internal_open(tnfctl_handle_t **ret_val) in tnfctl_internal_open() 85 tnfctl_handle_t *hdl; in tnfctl_internal_open()
|
/titanic_41/usr/src/cmd/tnf/prex/ |
H A D | main.c | 84 tnfctl_handle_t *g_hndl; /* handle on target or kernel */ 117 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) in check_trace_error() 386 tnfctl_handle_t *hndl; 394 tnfctl_handle_t *hndl = args_p->hndl; in percmd() 452 perprobe(tnfctl_handle_t *hndl, tnfctl_probe_t *probe_p) in perprobe() [all …]
|
H A D | list.c | 86 static tnfctl_errcode_t listprobe(tnfctl_handle_t *hndl, 88 static tnfctl_errcode_t probescan(tnfctl_handle_t *hndl, 109 extern tnfctl_handle_t *g_hndl; 301 probescan(tnfctl_handle_t *hndl, tnfctl_probe_t *ref_p, void *calldata_p) in probescan() 510 listprobe(tnfctl_handle_t *hndl, tnfctl_probe_t *ref_p, void *calldata_p) in listprobe()
|
H A D | prexgram.y | 90 extern tnfctl_handle_t *g_hndl; 94 extern void process_cmd(tnfctl_handle_t *hndl, cmd_t *cmd);
|
H A D | prbk.c | 43 extern tnfctl_handle_t *g_hndl;
|