3. I. What is DTrace?
While I go through the slides, please start copying the VM!
3
4. DTrace is..
• a comprehensive Dynamic Tracing
framework created by Sun Microsystems
for troubleshooting kernel and application
problems in real time.
4
6. • Dtrace enables us to “look into” the
internals of a running production application
and allows us to instrument it
• It can do very neat stuff in the kernel as
well, but that’s not the point of this session
6
8. • Dtrace allows you to dynamically modify
the operating system kernel and user
processes to record additional data that
you specify at locations of interest, called
probes
8
9. • Dtrace probes come from a set of kernel
modules called providers, each of which
performs a particular type of
instrumentation to create probes
9
12. Module
If this probe corresponds to a specific program
location, the name of the module which the probe is
located
The name is either the name of a kernel module or a
user library
12
13. Function
If this probe corresponds to a specific program
location, the name of the program function in which the
probe is located
13
14. Name
The final component of the probe name is a name that
gives you some idea of the probe’s semantic meaning
such as BEGIN or END
14
20. • The probe BEGIN fires every time you
start a new tracing request
• The probe END fires every time you exit
DTrace. In this case hitting Ctrl-C triggered
it.
20