Lines Matching refs:g_dtp

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