Lines Matching refs:prexstat
61 tnfctl_errcode_t prexstat; in tnfctl_exec_open() local
90 prexstat = _tnfctl_elf_dbgent(hdl, &dbgaddr); in tnfctl_exec_open()
91 if (prexstat) in tnfctl_exec_open()
99 prexstat = _tnfctl_map_to_errcode(prbstat); in tnfctl_exec_open()
104 prexstat = _tnfctl_set_state(hdl); in tnfctl_exec_open()
105 if (prexstat) in tnfctl_exec_open()
108 prexstat = _tnfctl_external_getlock(hdl); in tnfctl_exec_open()
109 if (prexstat) in tnfctl_exec_open()
119 return (prexstat); in tnfctl_exec_open()
137 tnfctl_errcode_t prexstat; in tnfctl_pid_open() local
139 prexstat = attach_pid(pid, &proc_p); in tnfctl_pid_open()
140 if (prexstat) { in tnfctl_pid_open()
141 return (prexstat); in tnfctl_pid_open()
166 prexstat = step_to_end_of_exec(hdl); in tnfctl_pid_open()
169 if (prexstat) in tnfctl_pid_open()
175 prexstat = _tnfctl_elf_dbgent(hdl, &dbgaddr); in tnfctl_pid_open()
176 if (prexstat) in tnfctl_pid_open()
184 prexstat = _tnfctl_map_to_errcode(prbstat); in tnfctl_pid_open()
189 prexstat = _tnfctl_set_state(hdl); in tnfctl_pid_open()
190 if (prexstat) in tnfctl_pid_open()
194 prexstat = _tnfctl_external_getlock(hdl); in tnfctl_pid_open()
195 if (prexstat) in tnfctl_pid_open()
206 return (prexstat); in tnfctl_pid_open()
219 tnfctl_errcode_t prexstat; in tnfctl_indirect_open() local
238 prexstat = _tnfctl_set_state(hdl); in tnfctl_indirect_open()
239 if (prexstat) { in tnfctl_indirect_open()
241 return (prexstat); in tnfctl_indirect_open()
244 prexstat = _tnfctl_external_getlock(hdl); in tnfctl_indirect_open()
245 if (prexstat) { in tnfctl_indirect_open()
247 return (prexstat); in tnfctl_indirect_open()
261 tnfctl_errcode_t prexstat; in tnfctl_kernel_open() local
270 prexstat = _tnfctl_prbk_init(hdl); in tnfctl_kernel_open()
271 if (prexstat) in tnfctl_kernel_open()
272 return (prexstat); in tnfctl_kernel_open()
283 prexstat = _tnfctl_refresh_kernel(hdl); in tnfctl_kernel_open()
284 if (prexstat) in tnfctl_kernel_open()
285 return (prexstat); in tnfctl_kernel_open()
301 tnfctl_errcode_t prexstat; in tnfctl_trace_attrs_get() local
304 LOCK_SYNC(hdl, prexstat, release_lock); in tnfctl_trace_attrs_get()
328 tnfctl_errcode_t prexstat; in tnfctl_buffer_alloc() local
332 prexstat = _tnfctl_prbk_buffer_alloc(hdl, trace_file_size); in tnfctl_buffer_alloc()
333 if (prexstat) in tnfctl_buffer_alloc()
334 return (prexstat); in tnfctl_buffer_alloc()
344 prexstat = _tnfctl_create_tracefile(hdl, trace_file_name, in tnfctl_buffer_alloc()
346 if (prexstat) { in tnfctl_buffer_alloc()
347 return (prexstat); in tnfctl_buffer_alloc()
359 tnfctl_errcode_t prexstat; in tnfctl_buffer_dealloc() local
365 prexstat = _tnfctl_prbk_buffer_dealloc(hdl); in tnfctl_buffer_dealloc()
366 if (prexstat) in tnfctl_buffer_dealloc()
367 return (prexstat); in tnfctl_buffer_dealloc()
499 tnfctl_errcode_t prexstat; in _tnfctl_external_getlock() local
504 prexstat = _tnfctl_sym_find(hdl, TNFCTL_INTERNAL_TRACEFLAG, in _tnfctl_external_getlock()
506 if (prexstat) { in _tnfctl_external_getlock()
514 prexstat = _tnfctl_map_to_errcode(prbstat); in _tnfctl_external_getlock()
519 prexstat = TNFCTL_ERR_BUSY; in _tnfctl_external_getlock()
522 prexstat = _tnfctl_sym_find(hdl, TNFCTL_EXTERNAL_TRACEDPID, in _tnfctl_external_getlock()
524 if (prexstat) { in _tnfctl_external_getlock()
531 prexstat = _tnfctl_map_to_errcode(prbstat); in _tnfctl_external_getlock()
540 return (prexstat); in _tnfctl_external_getlock()