mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 14:17:06 -04:00
_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 | ||