From 1a7c1b724419d3cb5fa6eea75123c6b2060ba31b Mon Sep 17 00:00:00 2001 From: mws Date: Sun, 31 Jul 2005 12:13:11 -0700 Subject: 6275414 unary operator * doesn't work properly when applied to args[] elements 6282291 D compiler core dumps in dt_node_dynamic() for inline parameter 6295808 dtrace could warn about /* w/i a comment 6301080 dtrace debugging support should be easier to maintain 6301082 mdb should provide raw target support for DOF 6301083 dt_probe_discover() fails assertion when matching unpublished provider 6301084 Pscantext() leaks prmap_t buffer every time it is called 6301086 dtrace(1M) should always dtrace_close() before returning 6301087 dtrace_close() deadlock in dt_proc_destroy() when processes are idle 6301088 dtrace_program_link() leaks ELF handles for object files 6301091 D compiler support for USDT translators (part 2) --- usr/src/lib/libdtrace/common/dtrace.h | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) (limited to 'usr/src/lib/libdtrace/common/dtrace.h') diff --git a/usr/src/lib/libdtrace/common/dtrace.h b/usr/src/lib/libdtrace/common/dtrace.h index 960c50e15a..efeb44550a 100644 --- a/usr/src/lib/libdtrace/common/dtrace.h +++ b/usr/src/lib/libdtrace/common/dtrace.h @@ -76,6 +76,7 @@ extern void dtrace_close(dtrace_hdl_t *); extern int dtrace_errno(dtrace_hdl_t *); extern const char *dtrace_errmsg(dtrace_hdl_t *, int); extern const char *dtrace_faultstr(dtrace_hdl_t *, int); +extern const char *dtrace_subrstr(dtrace_hdl_t *, int); extern int dtrace_setopt(dtrace_hdl_t *, const char *, const char *); extern int dtrace_getopt(dtrace_hdl_t *, const char *, dtrace_optval_t *); @@ -87,9 +88,7 @@ extern int dtrace_ctlfd(dtrace_hdl_t *); * DTrace Program Interface * * DTrace programs can be created by compiling ASCII text files containing - * D programs, by compiling C strings that specify a D program, or by - * manually constructing statements and adding them to an existing program. - * The dtrace_program_create() function can be used to create an empty program. + * D programs or by compiling in-memory C strings that specify a D program. * Once created, callers can examine the list of program statements and * enable the probes and actions described by these statements. */ @@ -141,9 +140,6 @@ extern void dtrace_dof_destroy(dtrace_hdl_t *, void *); extern void *dtrace_getopt_dof(dtrace_hdl_t *); extern void *dtrace_geterr_dof(dtrace_hdl_t *); -extern dtrace_prog_t *dtrace_program_create(dtrace_hdl_t *); -extern void dtrace_program_destroy(dtrace_hdl_t *, dtrace_prog_t *); - typedef struct dtrace_stmtdesc { dtrace_ecbdesc_t *dtsd_ecbdesc; /* ECB description */ dtrace_actdesc_t *dtsd_action; /* action list */ @@ -167,12 +163,7 @@ extern int dtrace_stmt_add(dtrace_hdl_t *, dtrace_prog_t *, dtrace_stmtdesc_t *); extern int dtrace_stmt_iter(dtrace_hdl_t *, dtrace_prog_t *, dtrace_stmt_f *, void *); -extern void dtrace_stmt_destroy(dtrace_stmtdesc_t *); - -extern dtrace_ecbdesc_t *dtrace_ecbdesc_create(dtrace_hdl_t *, - const dtrace_probedesc_t *); -extern void dtrace_ecbdesc_hold(dtrace_ecbdesc_t *); -extern void dtrace_ecbdesc_release(dtrace_ecbdesc_t *); +extern void dtrace_stmt_destroy(dtrace_hdl_t *, dtrace_stmtdesc_t *); /* * DTrace Data Consumption Interface @@ -398,20 +389,6 @@ extern struct ps_prochandle *dtrace_proc_grab(dtrace_hdl_t *, pid_t, int); extern void dtrace_proc_release(dtrace_hdl_t *, struct ps_prochandle *); extern void dtrace_proc_continue(dtrace_hdl_t *, struct ps_prochandle *); -/* - * DTrace DIF Object (DIFO) Interface - * - * Library clients who wish to create their own custom DIF programs can use - * the functions below to create a DIFO from a C string containing a D - * expression statement. Clients may also create raw DIF on-the-fly without - * invoking the D compiler by simply constructing the dtrace_difo_t by hand. - */ - -extern dtrace_difo_t *dtrace_difo_create(dtrace_hdl_t *, const char *); -extern void dtrace_difo_print(const dtrace_difo_t *, FILE *); -extern void dtrace_difo_hold(dtrace_difo_t *); -extern void dtrace_difo_release(dtrace_difo_t *); - /* * DTrace Object, Symbol, and Type Interfaces * -- cgit v1.2.3