KP(1)

NAME
kp - kernel profiling

SYNOPSIS
kp [ -t duration ] [ -c command ] [ - fsx ] [ kernel ]

DESCRIPTION
Kp prints kernel profiling data. If the -t option is specified kp uses data collected during a sleep of the indicated duration (in seconds). If the -c option is specified kp uses data collected while the indicated command is run by system(3). If neither option is specified all profiling data since last boot is used; it is illegal to specify both -t and -c options.

Profiling data consists of (1) clock-driven profil(2)-style pc bucket counting and (2) system call counts. The bucket counts are reported resolved to the kernel source-file level or the external text symbol level, according to whether the -f or -x options is given, respectively. Raw unscaled bucket tick counts are given. System call counts are reported if the -s option is specified. Specifying none of sfx is equivalent to specifying them all: the default treatment is to report ``the works.''

Normally the namelist in /unix is believed, but this may be overruled by giving the filename kernel argument.

Since this program needs privileges to read the -c option is an invitation to horesmanship.

FILES
/unix
/dev/kmem

BUGS
Not sorted.