Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ kgmon(8) — Ultrix/UWS 4.0 VAX

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gprof(1)

config(8)

kgconv(8)

kgmon(8)  —  VAX

Name

kgmon − generate a dump of the operating system’s profile buffers

Syntax

/etc/kgmon [ options ] [ system ] [ memory ]

Description

The kgmon command is used when profiling the operating system. When no arguments are supplied, kgmon indicates the state of operating system profiling as running, off, or not configured. For further information, see config(.). If the −p option is specified, kgmon extracts profile data from the operating system and produces a kgdump.out file suitable for later analysis by gprof.

The kgdump.out file is first converted to a format suitable for gprof by using the kgconv filter. The kgmon command dumps the kernel profiling data for all the processors in the system. The kgconv command is used to create a gmon.out file suitable for analysis by gprof for any or all the processors in the system.

Options

−bResume the collection of profile data. 

−hStop the collection of profile data. 

−pDump the contents of the profile buffers into a kgdump.out file. 

−rReset all the profile buffers.  If the −p option is also specified, the kgdump.out file is generated before the buffers are reset. 

If neither −b nor −h is specified, the state of profiling collection remains unchanged.  For example, if the −p option is specified and profile data is being collected, profiling will be momentarily suspended, the operating system profile buffers will be dumped, and profiling will be immediately resumed. 

Diagnostics

Users with only read permission on /dev/kmem cannot change the state of profiling collection. They can get a kgdump.out file with the warning that the data may be inconsistent if profiling is in progress.

Files

/vmunix the default system

/dev/kmem the default memory

See Also

gprof(1), config(8), kgconv(8)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026