Go to main content

Oracle® Solaris 11.4 DTrace (Dynamic Tracing) Guide

Exit Print View

Updated: September 2020
 
 

Formatting Output APIs

void *dtrace_printf_create(dtrace_hdl_t *dtp, const char *s)

Generates formatted data from a string, s. dtp is the DTrace handle returned by dtrace_open(). See dtrace_printf_create(3DTRACE).

void *dtrace_printa_create(dtrace_hdl_t *dtp, const char *s)

Generates formatted data from a string, s. dtp is the DTrace handle returned by dtrace_open(). See dtrace_printa_create(3DTRACE).

size_t dtrace_printf_format(dtrace_hdl_t *dtp, void *fmtdata, char *s, size_t len)

Extracts the formatted string from fmtdata and writes at most len bytes of this string into buf. dtp is the DTrace handle returned by dtrace_open(). See dtrace_printf_format(3DTRACE).

int dtrace_fprintf(dtrace_hdl_t *dtp, FILE *fp, void *fmtdata, const dtrace_probedata_t *data, const dtrace_recdesc_t *recp, uint_t nrecs, const void *buf, size_t len)

Process the data from the printf() action in a D program. See dtrace_fprintf(3DTRACE).

int dtrace_fprinta(dtrace_hdl_t *dtp, FILE *fp, void *fmtdata, const dtrace_probedata_t *data, const dtrace_recdesc_t *recs, uint_t nrecs, const void *buf, size_t len)

Process the data from the printa() action in a D program. See dtrace_fprinta(3DTRACE).

int dtrace_system(dtrace_hdl_t *dtp, FILE *fp, void *fmtdata, const dtrace_probedata_t *data, const dtrace_recdesc_t *recp, uint_t nrecs, const void *buf, size_t len)

Process the data from the system() action in a D program. See dtrace_system(3DTRACE).

int dtrace_freopen(dtrace_hdl_t *dtp, FILE *fp, void *fmtdata, const dtrace_probedata_t *data, const dtrace_recdesc_t *recp, uint_t nrecs, const void *buf, size_t len)

Process the data from the freopen() action in a D program. See dtrace_freopen(3DTRACE).