kprof man page on Plan9

Man page or keyword search:  
man Server   549 pages
apropos Keyword Search (all sections)
Output format
Plan9 logo
[printable version]

KPROF(3)							      KPROF(3)

NAME
       kprof - kernel profiling

SYNOPSIS
       bind -a #K /dev

       /dev/kpctl
       /dev/kpdata

DESCRIPTION
       The  kprof device provides simple profiling data for the operating sys‐
       tem 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	kernel
       text.   The  first  count  holds the total number of clock ticks during
       profiling; the second the number of ticks that occurred while the  ker‐
       nel  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.

EXAMPLE
       The following rc(1) script runs a test program while profiling the ker‐
       nel and reports the results.

	    bind -a '#K' /dev
	    echo start > /dev/kpctl
	    runtest
	    echo stop > /dev/kpctl
	    kprof /386/9pcdisk /dev/kpdata

SOURCE
       /sys/src/9/port/devkprof.c

SEE ALSO
       prof(1)

								      KPROF(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net