HP Caliper Ktrace Features Guide

2 ktracer: Kernel Tracer
This chapter summarizes the ktracer command and its options. See the ktracer(1M)
manpage for detailed syntax information and other examples.
Syntax
The following options are for getting started with ktracer:
ktracer [-R] [-L] [-b] [-B] [ -w workload] [ -g numsec]
The following options are for changing the function list:
ktracer [-a func].... [-e [mod:]pattern]... [-l lib]... [-m mod]...
[-r func]... [-S func]... [-z]
The following options are for installing the function list:
ktracer [-I] [-U]
The following options are for managing memory for the traces:
ktracer [-A numtraces] [-f] [-Z]
The following options are general options:
ktracer [-?] [-t] [-D ktracedump-options] [-p pid]
Starting ktracer
The following commands are quick ways to starting kernel tracing:
ktracer L causes a limited set of key functions to be traced.
ktracer b or ktracer B starts kernel tracing.
To produce a list of all traceable functions in a given system, run the following
command:
ktracer R -h; ktracedump-DNF > traceable_functions
Stopping ktracer
To stop ktracer, enter Ctrl-C, or from another process use the command:
ktracer -h
Either of these methods stops the tracing. You can then review the data collected using
ktracedump. See “3 ktracedump: Kernel Trace Reporter” [p. 27] and the
ktracedump(1M) manpage.
Syntax 19