HP Caliper Ktrace Features Guide

ktracer -R (Turn on tracing of everything possible)
run workload
ktracer -h (Halt tracing)
ktracedump -D > ktrc.out (Produce basic trace report)
Report a trace listing on a crash dump:
cd dump_directory
ktracedump -m > ktrace.dump
Trace only calls to read and write, capture 30000 calls per CPU, and produce a trace
report that includes all data in each trace.
ktracer -z -Z -A 30000 -a read -a write -B
run workload
ktracer -h (Halt tracing)
ktracedump-D -A > ktrace.rw
Display all columns for each trace record. Produce a list of traced functions. The
information will be saved in the file fn.lst.
ktracedump -A > fn.lst
Produce a list of traced functions and save it in the file kd.out.
ktracedump -F > kd.out
Sort the output by time rather than CPU and save the information in the file fn.lst.
ktracedump -S AbsTime > fn.lst
Display the AbsSec column in nanoseconds (16 characters wide with 9 places after the
decimal).
ktracedump -JAbsSec%16.9lf > kd.out
Display the ElUSec column in microseconds (14 characters wide with 6 places after the
decimal).
ktracedump -JElUSec%14.6lf > kd.out
Exclude the PSR and SpnD columns in a report.
ktracedump -j PSR -j SpnD > kd.out
Produce a kernel trace report that shows times in microseconds, not cycles, shows arg0
and global0, and does not display the kernel stack.
ktracedump -JElUSec -JAbsSec -j ElTime -J arg0 -G 0 \
-j StkHi -j StkLO > kd.out
If you have many ktracedump options, you can put them in a file:
echo "-JElUSec -JAbsSec -j ElTime -J arg0 -j StkHi -j StkLO" > kd.opt
and invoke ktracedump using the option file:
ktracedump$(<kd.opt) > kd.out
32 ktracedump: Kernel Trace Reporter