Chapter 12 DTrace

Table of Contents

12.1 About DTrace
12.2 Installing and Configuring DTrace
12.2.1 Changing the Mode of the DTrace Helper Device
12.2.2 Loading DTrace Kernel Modules
12.3 Differences Between DTrace on Oracle Linux and Oracle Solaris
12.4 Calling DTrace from the Command Line
12.5 About Programming for DTrace
12.6 Introducing the D Programming Language
12.6.1 Probe Clauses
12.6.2 Pragmas
12.6.3 Global Variables
12.6.4 Predicates
12.6.5 Scalar Arrays and Associative Arrays
12.6.6 Pointers and External Variables
12.6.7 Address Spaces
12.6.8 Thread-local Variables
12.6.9 Speculations
12.6.10 Aggregations
12.7 DTrace Command Examples
12.8 Tracing User-Space Applications
12.8.1 Examining the Stack Trace of a User-Space Application
12.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.