kgmon(8) — Unsupported
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 kgmon.out file suitable for analysis by gprof for any or all the processors in the system.
Options
−bResumes the collection of profile data.
−hStops the collection of profile data.
−pDumps the contents of the profile buffers into a kgdump.out file.
−rResets 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 Default system
/dev/kmem Default memory