mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
f0556e70bb
_mcount() stub when profiling is enabled. Emit this code sequence for assembly routines as welli (MCOUNT definition in <machine/asm.h>. We do not pass the GOT entry however as the 4th argument, because it's not used. The _mcount() stub calls __mcount(), which does the actual work. Define _MCOUNT_DECL to define __mcount. We do not have an implementation of mcount(), so we define MCOUNT as empty, but have a weak alias to _mcount() in _mcount.S. Note that the _mcount() stub in the kernel is slightly different from the stub in userland. This is because we do not have to worry about nested routines in the kernel. |
||
---|---|---|
.. | ||
gen | ||
net | ||
stdlib | ||
string | ||
sys | ||
_fpmath.h | ||
arith.h | ||
Makefile.inc | ||
SYS.h |