Next: 20.6 Changing parameters and
Up: 20 Profiling Support: liboskit_gprof.a
Previous: 20.4 Using gprof
- gprof/*
The gprof directory contains the files necessary for
the gprof program itself.
- libc/gmon/gmon.c
contains moncontrol() and monstartup().
- libc/gmon/mcount.c
contains the C-language _mcount routine.
- libc/x86/mcount_md.S
contains the asm routines which are linked into
functions compiled with -pg (mcount for C-language
functions). The __mcount routine must be called
manually by your assembly functions, though this call
is handled automatically if you use the ENTRY() macro.
- oskit/c/sys/gmon.h
- oskit/c/sysprofile.h
The profiling headers.
- kern/x86/pc/profil.c
The profil() system call (architecture-dependent).
University of Utah Flux Research Group