Lines Matching defs:g_dtp
46 static dtrace_hdl_t *g_dtp;
397 if (g_pr != NULL && g_dtp != NULL)
398 dtrace_proc_release(g_dtp, g_pr);
419 dtrace_errmsg(g_dtp, dtrace_errno(g_dtp)));
422 dtrace_errmsg(g_dtp, dtrace_errno(g_dtp)));
426 dtrace_proc_continue(g_dtp, g_pr);
427 dtrace_proc_release(g_dtp, g_pr);
465 if ((prog = dtrace_program_strcompile(g_dtp, g_prog,
469 if (dtrace_program_exec(g_dtp, prog, &info) == -1)
590 P = dtrace_proc_grab(g_dtp, pid, PGRAB_RDONLY);
649 dtrace_proc_release(g_dtp, P);
737 if (dtrace_aggregate_walk_joined(g_dtp, aggvars, nagv,
832 if ((g_dtp = dtrace_open(DTRACE_VERSION, 0, &err)) == NULL)
839 if (dtrace_setopt(g_dtp, "strsize", "32") == -1)
845 if (dtrace_setopt(g_dtp, "bufsize", "1k") == -1)
851 if (dtrace_setopt(g_dtp, "aggsortrev", NULL) == -1)
857 if (dtrace_setopt(g_dtp, "aggsize", "256k") == -1)
859 if (dtrace_setopt(g_dtp, "aggrate", "1sec") == -1)
871 if (dtrace_setopt(g_dtp, "ustackframes", optarg) == -1)
879 if (dtrace_setopt(g_dtp, optarg, p) != 0)
941 if ((g_pr = dtrace_proc_grab(g_dtp, (pid_t)pid, 0)) == NULL)
944 if ((g_pr = dtrace_proc_create(g_dtp, argv[0], argv)) == NULL)
950 if (dtrace_handle_proc(g_dtp, &prochandler, NULL) == -1)
959 if (dtrace_go(g_dtp) != 0)
962 if (dtrace_getopt(g_dtp, "ustackframes", &g_nframes) != 0)
965 dtrace_proc_continue(g_dtp, g_pr);
973 dtrace_sleep(g_dtp);
977 if (dtrace_stop(g_dtp) == -1)
981 switch (dtrace_work(g_dtp, stdout, NULL, chewrec, NULL)) {
993 dtrace_close(g_dtp);