Marcel Moolenaar f0556e70bb Make profiling actually work. The gcc compiler emits a call to the
_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.
2004-08-25 07:42:34 +00:00
..
2003-06-14 19:32:52 +00:00
Use
2003-06-06 13:46:55 +00:00
2004-07-01 18:20:57 +00:00
2004-07-05 06:59:17 +00:00
2004-07-03 22:30:10 +00:00
Use
2003-06-06 13:46:55 +00:00
2004-07-28 05:44:52 +00:00
Use
2003-06-06 13:46:55 +00:00
2003-08-18 15:25:39 +00:00
2004-07-05 06:53:34 +00:00
2004-06-30 23:58:22 +00:00
2003-08-30 13:57:31 +00:00
2004-08-19 23:51:42 +00:00