dtrace_aggregate_snap - Retrieves aggregation data from the kernel
cc [ flag... ] file... -ldtrace [ library... ] #include <dtrace.h> int dtrace_aggregate_snap(dtrace_hdl_t *dtp)
This function is called to transfer data from the in-kernel aggregation buffers to the userspace (consumer). The data is not processed at this point.
Upon successful completion, the dtrace_aggregate_snap() function returns 0.
On failure, the dtrace_aggregate_snap() function returns -1 and sets the DTrace error number to indicate the reason for the failure. See the dtrace_errno(3DTRACE) man page for more information.
The dtrace_aggregate_snap() function will fail if:
dtp is NULL.
The system encountered an error while copying aggregation data out of the kernel.
The DTrace handle is not active because the dtrace_go(3DTRACE) function has not been called yet.
See attributes(7) for descriptions of the following attributes:
|
libdtrace(3LIB), dtrace_errno(3DTRACE), dtrace_aggregate_print(3DTRACE), dtrace_aggregate_walk(3DTRACE)