4.1.4.2 exit

void exit(int status)

The exit action is used to immediately stop tracing and inform the DTrace consumer that it should do the following: cease tracing, perform any final processing, and call exit() with the specified status value. Because exit returns a status to user level, it is considered a data recording action, However, unlike other data storing actions, exit cannot be speculatively traced. The exit action causes the DTrace consumer to exit regardless of buffer policy. Note that because exit is a data recording action, it can be dropped.

When exit is called, only those DTrace actions that are already in progress on other CPUs are completed. No new actions occur on any CPU. The only exception to this rule is the processing of the END probe, which is called after the DTrace consumer has processed the exit action, and indicates that tracing should stop.