Go to main content

Oracle® Solaris 11.4 DTrace (Dynamic Tracing) Guide

Exit Print View

Updated: September 2020
 
 
Chapter 21

Program Versioning in DTrace

You can use the DTrace features for determining the stability attributes of D programs that you create. After you create a D program with the appropriate stability attributes, you might also want to bind this program to a particular version of the D programming interface. The D interface version is a label applied to a particular set of types, variables, functions, constants, and translators made available to you by the D compiler. If you specify a binding to a specific version of the D programming interface, you ensure that you can recompile your program on future versions of DTrace without encountering conflicts between program identifiers that you define and identifiers defined in future versions of the D programming interface. You must establish version bindings for any D programs that you want to install as persistent scripts or use in layered tools. For more information about persistent scripts, see Scripting in DTrace.