HP Caliper Ktrace Features Guide

Table of Contents
About This Document.....................................................................................................................7
1 HP Caliper Ktrace Feature Overview..........................................................................................11
What Is HP Caliper Ktrace?................................................................................................11
Ktrace Command Format...................................................................................................12
Supported Hardware and Operating Systems...................................................................13
User Requirements and Security Restrictions....................................................................13
Sample Trace.......................................................................................................................13
How does Kernel Tracing Work?........................................................................................14
Trace Buffers..................................................................................................................14
Trace Points....................................................................................................................15
Trace Buffer Management.............................................................................................15
Limitations..........................................................................................................................16
Performance........................................................................................................................17
2 ktracer: Kernel Tracer................................................................................................................19
Syntax.................................................................................................................................19
Starting ktracer...................................................................................................................19
Stopping ktracer.................................................................................................................19
Options...............................................................................................................................20
Examples.............................................................................................................................23
Example Troubleshooting a Performance Problem............................................................24
Procedure......................................................................................................................24
Inserting Trace Points for Kernel Source Code.............................................................25
3 ktracedump: Kernel Trace Reporter.............................................................................................27
Syntax.................................................................................................................................27
Usage.............................................................................................................................27
Options..........................................................................................................................27
Using ktracedump.........................................................................................................29
Kernel Trace Report Output.....................................................................................30
Limitations.....................................................................................................................31
Examples.......................................................................................................................31
Table of Contents 3