Lines Matching defs:g_dtp
175 static dtrace_hdl_t *g_dtp;
289 dtrace_errmsg(g_dtp, dtrace_errno(g_dtp)));
292 dtrace_errmsg(g_dtp, dtrace_errno(g_dtp)));
299 dtrace_close(g_dtp);
548 nmods = dtrace_provider_modules(g_dtp, mods,
640 dtrace_program_info(g_dtp, dcp->dc_prog, &dpi);
641 } else if (dtrace_program_exec(g_dtp, dcp->dc_prog, &dpi) == -1) {
671 (void) dtrace_stmt_iter(g_dtp, dcp->dc_prog,
701 dtrace_dof_destroy(g_dtp, dof);
729 if (dtrace_program_link(g_dtp, dcp->dc_prog, DTRACE_D_PROBES,
760 if (dtrace_probe_iter(g_dtp, &edp->dted_probe, list_probe, NULL) != 0) {
780 (void) dtrace_stmt_iter(g_dtp, dcp->dc_prog,
796 if ((dcp->dc_prog = dtrace_program_fcompile(g_dtp, fp,
812 if ((dcp->dc_prog = dtrace_program_strcompile(g_dtp, dcp->dc_arg,
1153 if (dtrace_getopt(g_dtp, bufs[i].optname, &bufs[i].val) == -1)
1158 if (dtrace_getopt(g_dtp, rates[i].optname, &rates[i].val) == -1)
1162 if (dtrace_go(g_dtp) == -1)
1172 (void) dtrace_getopt(g_dtp, bufs[i].optname, &nsize);
1199 (void) dtrace_getopt(g_dtp, rates[i].optname, &nval);
1475 while ((g_dtp = dtrace_open(DTRACE_VERSION, g_oflags, &err)) == NULL) {
1485 (void) dtrace_setopt(g_dtp, "bufsize", "4m");
1486 (void) dtrace_setopt(g_dtp, "aggsize", "4m");
1496 (void) dtrace_setopt(g_dtp, "linkmode", "dynamic");
1497 (void) dtrace_setopt(g_dtp, "unodefs", NULL);
1514 (void) dtrace_setopt(g_dtp, "linkmode", "primary");
1534 if (dtrace_setopt(g_dtp, "grabanon", 0) != 0)
1539 if (dtrace_setopt(g_dtp,
1553 if (dtrace_setopt(g_dtp, "define", optarg) != 0)
1565 if (dtrace_setopt(g_dtp, "flowindent", 0) != 0)
1570 if (dtrace_setopt(g_dtp, "cpphdrs", 0) != 0)
1582 if (dtrace_setopt(g_dtp, "incdir", optarg) != 0)
1587 if (dtrace_setopt(g_dtp, "libdir", optarg) != 0)
1613 if (dtrace_setopt(g_dtp, "quiet", 0) != 0)
1633 if (dtrace_setopt(g_dtp, "undef", optarg) != 0)
1642 if (dtrace_setopt(g_dtp, "destructive", 0) != 0)
1650 if (dtrace_setopt(g_dtp, optarg, p) != 0)
1655 if (dtrace_setopt(g_dtp, "stdc", optarg) != 0)
1710 P = dtrace_proc_create(g_dtp, v[0], v);
1725 P = dtrace_proc_grab(g_dtp, pid, 0);
1744 if (dtrace_handle_err(g_dtp, &errhandler, NULL) == -1)
1747 if (dtrace_handle_drop(g_dtp, &drophandler, NULL) == -1)
1750 if (dtrace_handle_proc(g_dtp, &prochandler, NULL) == -1)
1753 if (dtrace_handle_setopt(g_dtp, &setopthandler, NULL) == -1)
1757 dtrace_handle_buffered(g_dtp, &bufhandler, NULL) == -1)
1761 (void) dtrace_getopt(g_dtp, "flowindent", &opt);
1764 (void) dtrace_getopt(g_dtp, "grabanon", &opt);
1767 (void) dtrace_getopt(g_dtp, "quiet", &opt);
1786 dtrace_close(g_dtp);
1799 dtrace_close(g_dtp);
1808 dtrace_dof_create(g_dtp, g_cmdv[i].dc_prog, 0), i);
1815 anon_prog(NULL, dtrace_geterr_dof(g_dtp), i++);
1816 anon_prog(NULL, dtrace_getopt_dof(g_dtp), i++);
1830 dtrace_close(g_dtp);
1838 dtrace_close(g_dtp);
1851 if (dtrace_program_link(g_dtp, NULL, DTRACE_D_PROBES,
1856 dtrace_close(g_dtp);
1860 dtrace_close(g_dtp);
1875 (void) dtrace_probe_iter(g_dtp, NULL, list_probe, NULL);
1877 dtrace_close(g_dtp);
1884 dtrace_close(g_dtp);
1895 dtrace_close(g_dtp);
1904 dtrace_close(g_dtp);
1919 if (dtrace_program_header(g_dtp, g_ofp, g_ofile) != 0 ||
1923 dtrace_close(g_dtp);
1940 (void) dtrace_getopt(g_dtp, "flowindent", &opt);
1943 (void) dtrace_getopt(g_dtp, "grabanon", &opt);
1946 (void) dtrace_getopt(g_dtp, "quiet", &opt);
1949 (void) dtrace_getopt(g_dtp, "destructive", &opt);
1975 dtrace_proc_continue(g_dtp, g_psv[i]);
1982 dtrace_sleep(g_dtp);
1996 if (dtrace_stop(g_dtp) == -1)
2000 switch (dtrace_work(g_dtp, g_ofp, chew, chewrec, NULL)) {
2007 if (!g_impatient && dtrace_errno(g_dtp) != EINTR)
2018 if (dtrace_aggregate_print(g_dtp, g_ofp, NULL) == -1 &&
2019 dtrace_errno(g_dtp) != EINTR)
2023 dtrace_close(g_dtp);