Chapter 4 Actions and Subroutines

You use D function calls such as trace and printf to invoke two different kinds of services that are provided by DTrace: actions and subroutines. Actions trace data or modify a state that is external to DTrace, while subroutines affect only the internal DTrace state.

This chapter defines DTrace actions and subroutines and also describes their syntax and semantics.