Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

dtrace_update (3DTRACE)

Name

dtrace_update - Process aggregation data

Synopsis

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

     void dtrace_update(dtrace_hdl_t *dtp)

Description

The dtrace_update() function flushes and repopulates the following caches maintained by DTrace:

  • Cache of information about the modules loaded on a system

  • Cache of macros such as $uid, $gid, and $pid available to the D program

Return Values

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

Errors

The dtrace_update() function will fail if:

EINVAL

The dtp parameter is NULL.

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Architecture
All
Availability
system/dtrace
Interface Stability
Committed
MT-Level
Safe

See Also

libdtrace(3LIB), dtrace_errno(3DTRACE)