Query: kprof
OS: plan9
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
KPROF(3) Library Functions Manual KPROF(3)NAMEkprof - kernel profilingSYNOPSISbind -a #T /dev /dev/kpctl /dev/kpdataDESCRIPTIONThe kprof device provides simple profiling data for the operating system kernel. The data accumulates by recording the program counter of the kernel at each `tick' of the system clock. The file kpdata holds the accumulated counts as 4-byte integers in big-endian byte order. The size of the file depends on the size of ker- nel text. The first count holds the total number of clock ticks during profiling; the second the number of ticks that occurred while the kernel was running. The rest each hold the number of ticks the kernel program counter was within the corresponding 8-byte range of kernel text, starting from the base of kernel text. The file kpctl controls profiling. Writing the string start to kpctl begins profiling; stop terminates it. The message startclr restarts profiling after zeroing the array of counts. The program kprof (see prof(1)) formats the data for presentation.EXAMPLEThe following rc(1) script runs a test program while profiling the kernel and reports the results. bind -a '#T' /dev echo start > /dev/kpctl runtest echo stop > /dev/kpctl kprof /mips/9power /dev/kpdataSOURCE/sys/src/9/port/devkprof.cSEE ALSOprof(1) KPROF(3)
Related Man Pages |
---|
profil(2) - debian |
profil(2) - opendarwin |
profil(2) - osx |
readprofile(1) - mojave |
readprofile(1) - v7 |
Similar Topics in the Unix Linux Community |
---|
How to test for a specific file size |
Setting the delimiter |
Kernel Profiling |
C profiling tool for AIX |