Building and Debugging 303
discuss KFI dynamic run; that is, we collect profiling data when the kernel
is up and running. Please follow instructions in
README.kfi, which is part
of the KFI package, for steps to do a static run.
KFI Toolset
Before going into usage of KFI we must understand various tools that are
part of the KFI toolset. The KFI toolset consists of three utilities:
kfi,
kfiresolve, and kd. kfi triggers profiling data collection in the kernel.
kfiresolve and kd examine the collected data and present it to the user in
a readable format.
You need to cross-compile the
kfi program for your target. The various
kfi commands are:
# ./kfi
Usage: ./kfi <cmds>
commands: new, start, stop, read [id], status [id], reset
new: Start a new profiling session. ...