diff options
author | bde <bde@FreeBSD.org> | 2006-10-27 14:17:50 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2006-10-27 14:17:50 +0000 |
commit | f3dd13700bb000a0c99cb0996d1f6c9df117b656 (patch) | |
tree | cc1bab4d53c3e6c38a88d9d908f4e7581449fe5b /sys/i386/include/asmacros.h | |
parent | 849676e291fd7ded8bde77730c8a4e6c76ee52ea (diff) | |
download | FreeBSD-src-f3dd13700bb000a0c99cb0996d1f6c9df117b656.zip FreeBSD-src-f3dd13700bb000a0c99cb0996d1f6c9df117b656.tar.gz |
Don't call mexitcount or provide a stub mexitcount to call when
profiling is configured but high resolution profiling is not configured.
Only functions in *.[Ss] called the stub, so efficiency was not
significantly affected.
Diffstat (limited to 'sys/i386/include/asmacros.h')
-rw-r--r-- | sys/i386/include/asmacros.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/include/asmacros.h b/sys/i386/include/asmacros.h index b9f027e..a95eff0 100644 --- a/sys/i386/include/asmacros.h +++ b/sys/i386/include/asmacros.h @@ -108,8 +108,12 @@ #define FAKE_MCOUNT(caller) pushl caller ; call __mcount ; popl %ecx #define MCOUNT call __mcount #define MCOUNT_LABEL(name) GEN_ENTRY(name) ; nop ; ALIGN_TEXT +#ifdef GUPROF #define MEXITCOUNT call HIDENAME(mexitcount) #define ret MEXITCOUNT ; NON_GPROF_RET +#else +#define MEXITCOUNT +#endif #else /* !GPROF */ /* |