User Tools

Site Tools


solaris:dtrace_sleep.3dtrace

dtrace_sleep


NAME

dtrace_sleep - DTrace-specific sleep

SYNOPSIS

cc [ flag… ] file… -ldtrace [ library… ]
#include <dtrace.h>

void dtrace_sleep(dtrace_hdl_t *dtp)

DESCRIPTION

The calling thread is suspended from execution for a period of time determined by the values of the statusrate, aggrate, and switchrate arguments. See the dtrace_setopt(3DTRACE) man page for more information. The dtrace_sleep() function might return prior to the determined timeout if any traced process encounters an interesting event such as death of the process or the loading of a shared library by the process.

RETURN VALUES

The dtrace_sleep() function has no return value, although it sets the DTrace error number to indicate a failure. See the dtrace_errno(3DTRACE) man page for more information.

ERRORS

The dtrace_sleep() function will fail if:

EINVAL

The DTrace handle is NULL.

EXAMPLES

See the libdtrace(3LIB) man page for an example of using the dtrace_sleep() function.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

SEE ALSO

libdtrace(3LIB), dtrace_errno(3DTRACE), dtrace_setopt(3DTRACE)


solaris/dtrace_sleep.3dtrace.txt · Last modified: 2023/07/19 08:57 by A User Not Logged in