dtrace_start_anon, dtrace_add_anon, dtrace_finish_anon - DTrace anonymous tracing support
cc [ flag... ] file... -ldtrace [ library... ] #include <dtrace.h> int dtrace_start_anon(dtrace_hdl_t *dtp) int dtrace_add_anon(dtrace_hdl_t *dtp, dtrace_prog_t *dpp) int dtrace_finish_anon(dtrace_hdl_t *dtp)
The dtrace_start_anon() function begins the creation of an anonymous enabling.
The dtrace_add_anon() function adds the specified program, dpp to the anonymous enabling.
The dtrace_finish_anon() function finishes the creation of the anonymous enabling.
On successful completion, these functions return 0. Otherwise these functions return -1 and set the DTrace error number to indicate the reason for the failure. See the dtrace_errno(3DTRACE) man page for more information.
The dtrace_start_anon(), dtrace_add_anon(), and dtrace_finish_anon() function will fail if:
The dtp argument is NULL.
The dtrace_start_anon() function will fail if:
The function is unable to open the DTrace driver configuration file.
The dtrace_add_anon() function will fail if:
The dpp argument is NULL.
The system is unable to allocate memory during the processing of this function.
The dtrace_finish_anon() function will fail if:
The function is unable to open the DTrace-specific /etc/system.d file.
The system is unable to allocate memory during the processing of this function.
See attributes(7) for descriptions of the following attributes:
|