dtrace_setopt() Function

Use the setopt() function options for a D program. The arguments to the dtrace_setopt() function are DTrace handle and the name and value of any argument.

int dtrace_setopt(dtrace_hdl_t *dtp, const char *opt, const char *val)

Embedding DTrace in a Consumer uses aggregation in the D program and uses aggsize to specify the size of the aggregation buffer. For non-aggregation tracing, you must use bufsize specify the size of the primary buffer.

Note:

The dtrace_getopt() function gets the value of a DTrace option.