O'Reilly logo

DTrace: Dynamic Tracing in Oracle by Jim Mauro, Brendan Gregg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12. Kernel

The operating system kernel is the software at the heart of a system, managing system resources and user processes. It has historically been difficult to observe as it executes in a protected context, beyond the reach of process debuggers. DTrace provides custom visibility into kernel operations, allowing you to answer questions such as the following.

• Where is the kernel spending time consuming CPU cycles?

• What kernel memory allocations are occurring, and for which segments?

• When are functions executing? And with what arguments?

• Why are functions being executed? What is their stack backtrace?

• How long does it take to execute kernel functions? On-cpu/off-cpu?

As an example, the following one-liner traces all kernel function ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required