Lines Matching refs:err

169 	tnfctl_errcode_t	err = TNFCTL_ERR_NONE;
196 err = tnfctl_kernel_open(&g_hndl);
197 if (err) {
200 argv[0], tnfctl_strerror(err));
208 err = tnfctl_pid_open(g_targetpid, &g_hndl);
209 if (err == TNFCTL_ERR_NOLIBTNFPROBE) {
213 argv[0], tnfctl_strerror(err));
214 } else if (err) {
218 argv[0], tnfctl_strerror(err));
224 err = tnfctl_exec_open(g_cmdname, g_cmdargs, NULL,
226 if (err == TNFCTL_ERR_NONE)
227 err = tnfctl_trace_attrs_get(g_hndl,
229 if (err) {
233 argv[0], tnfctl_strerror(err));
242 argv[0], strerror(err));
250 err = set_tracefile(g_hndl);
251 if (err) {
254 argv[0], tnfctl_strerror(err));
257 err = check_trace_error(g_hndl);
258 if (err) {
261 argv[0], tnfctl_strerror(err));
273 err = set_probe_discovery_callback(g_hndl);
274 if (err) {
277 argv[0], tnfctl_strerror(err));
285 while (err == TNFCTL_ERR_NONE) {
293 err = tnfctl_continue(g_hndl, &event, NULL);
294 if (err) {
297 argv[0], tnfctl_strerror(err));
301 err = check_trace_error(g_hndl);
302 if (err) {
305 argv[0], tnfctl_strerror(err));
330 err = tnfctl_close(g_hndl, TNFCTL_TARG_DEFAULT);
331 if (err)
334 argv[0], tnfctl_strerror(err));
349 tnfctl_errcode_t err;
351 err = tnfctl_trace_attrs_get(hndl, &trace_attrs);
352 if (err)
353 return (err);
396 tnfctl_errcode_t err = TNFCTL_ERR_NONE;
417 err = tnfctl_probe_enable(hndl, probe_p, NULL);
420 err = tnfctl_probe_disable(hndl, probe_p, NULL);
423 err = tnfctl_probe_trace(hndl, probe_p, NULL);
426 err = tnfctl_probe_untrace(hndl, probe_p, NULL);
429 err = tnfctl_probe_connect(hndl, probe_p, NULL,
433 err = tnfctl_probe_disconnect_all(hndl, probe_p, NULL);
446 return (err);
455 tnfctl_errcode_t err;
459 err = cmd_traverse(percmd, &args);
460 if (err) {
463 g_argv[0], tnfctl_strerror(err));
471 tnfctl_errcode_t err;
473 err = tnfctl_register_funcs(hndl, perprobe, NULL);
474 if (err)
475 return (err);
485 tnfctl_errcode_t err;
489 err = cmd_callback(cmd, percmd, &args);
490 if (err) {
493 g_argv[0], tnfctl_strerror(err));
495 return (err);
539 tnfctl_errcode_t err;
542 err = tnfctl_close(g_hndl, TNFCTL_TARG_DEFAULT);
544 err = tnfctl_close(g_hndl, TNFCTL_TARG_KILL);
546 err = tnfctl_close(g_hndl, TNFCTL_TARG_RESUME);
548 err = tnfctl_close(g_hndl, TNFCTL_TARG_SUSPEND);
549 if (err) {
552 g_argv[0], tnfctl_strerror(err));
720 tnfctl_errcode_t err;
729 err = tnfctl_trace_attrs_get(hndl, &attrs);
730 if (err)
731 return (err);
784 err = tnfctl_buffer_alloc(hndl, outfile_name, g_outsize);
785 return (err);