the _p versions of all libraries you would normally use
the .po versions of all .o files you would use
exceptcrtn.o and multiboot.o (if you use them)
Insert ``-loskit_gprof -loskit_kern_p -loskit_c_p''
immediately after the existing ``-loskit_kern_p -loskit_c_p.''
That's right, another instance of the kern and C libs.
If you use the FreeBSD C library, do the analogous thing.
If the above doesn't work, try including the libs more times
(yes, this is bogus).
Be sure to include the following libraries:
oskit_dev_p
oskit_lmm_p
Run mkbsdimagemultiboot_kernel multiboot_kernel:a.out
or mkmbimagemultiboot_kernel multiboot_kernel:a.out
This step is necessary so gprof can access the kernel's symbol
table via the bmodfs.
Run the kernel (if created as above, it would be named Image).