Chapter 13 DTrace

Table of Contents

13.1 About DTrace
13.2 Installing and Configuring DTrace
13.2.1 Changing the Mode of the DTrace Helper Device
13.2.2 Loading DTrace Kernel Modules
13.3 Differences Between DTrace on Oracle Linux and Oracle Solaris
13.4 Calling DTrace from the Command Line
13.5 About Programming for DTrace
13.6 Introducing the D Programming Language
13.6.1 Probe Clauses
13.6.2 Pragmas
13.6.3 Global Variables
13.6.4 Predicates
13.6.5 Scalar Arrays and Associative Arrays
13.6.6 Pointers and External Variables
13.6.7 Address Spaces
13.6.8 Thread-local Variables
13.6.9 Speculations
13.6.10 Aggregations
13.7 DTrace Command Examples
13.8 Tracing User-Space Applications
13.8.1 Examining the Stack Trace of a User-Space Application
13.9 For More Information About DTrace

This chapter introduces the dynamic tracing (DTrace) facility that you can use to examine the behavior of the operating system and the operating system kernel. Version 0.4 of DTrace is described, which is supported for use with UEK R3.