Lines Matching refs:g_dtp
49 static dtrace_hdl_t *g_dtp; variable
400 if (g_pr != NULL && g_dtp != NULL) in fatal()
401 dtrace_proc_release(g_dtp, g_pr); in fatal()
422 dtrace_errmsg(g_dtp, dtrace_errno(g_dtp))); in dfatal()
425 dtrace_errmsg(g_dtp, dtrace_errno(g_dtp))); in dfatal()
429 dtrace_proc_continue(g_dtp, g_pr); in dfatal()
430 dtrace_proc_release(g_dtp, g_pr); in dfatal()
468 if ((prog = dtrace_program_strcompile(g_dtp, g_prog, in dprog_compile()
472 if (dtrace_program_exec(g_dtp, prog, &info) == -1) in dprog_compile()
603 P = dtrace_proc_grab(g_dtp, pid, PGRAB_RDONLY); in process_aggregate()
662 dtrace_proc_release(g_dtp, P); in process_aggregate()
755 if (dtrace_aggregate_walk_joined(g_dtp, aggvars, nagv, in chewrec()
854 if ((g_dtp = dtrace_open(DTRACE_VERSION, 0, &err)) == NULL) in main()
861 if (dtrace_setopt(g_dtp, "strsize", "32") == -1) in main()
867 if (dtrace_setopt(g_dtp, "bufsize", "1k") == -1) in main()
873 if (dtrace_setopt(g_dtp, "aggsortrev", NULL) == -1) in main()
879 if (dtrace_setopt(g_dtp, "aggsize", "256k") == -1) in main()
881 if (dtrace_setopt(g_dtp, "aggrate", "1sec") == -1) in main()
893 if (dtrace_setopt(g_dtp, "ustackframes", optarg) == -1) in main()
901 if (dtrace_setopt(g_dtp, optarg, p) != 0) in main()
963 if ((g_pr = dtrace_proc_grab(g_dtp, (pid_t)pid, 0)) == NULL) in main()
966 if ((g_pr = dtrace_proc_create(g_dtp, argv[0], argv, NULL, NULL)) == NULL) in main()
972 if (dtrace_handle_proc(g_dtp, &prochandler, NULL) == -1) in main()
981 if (dtrace_go(g_dtp) != 0) in main()
984 if (dtrace_getopt(g_dtp, "ustackframes", &g_nframes) != 0) in main()
987 dtrace_proc_continue(g_dtp, g_pr); in main()
999 dtrace_sleep(g_dtp); in main()
1003 if (dtrace_stop(g_dtp) == -1) in main()
1007 switch (dtrace_work(g_dtp, stdout, NULL, chewrec, NULL)) { in main()
1019 dtrace_close(g_dtp); in main()