diff options
author | Andreas Tobler <andreast@FreeBSD.org> | 2012-01-20 22:34:19 +0000 |
---|---|---|
committer | Andreas Tobler <andreast@FreeBSD.org> | 2012-01-20 22:34:19 +0000 |
commit | 9eab2f146aac764ecba5a086e52a57b1ea1a18f0 (patch) | |
tree | 76275af2450ac7e58277331e71af5cce366f1f7d /lib | |
parent | 8bab0d80ca7758900afdbc4a15fb2ba09fa7265e (diff) | |
download | src-9eab2f146aac764ecba5a086e52a57b1ea1a18f0.tar.gz src-9eab2f146aac764ecba5a086e52a57b1ea1a18f0.zip |
This commit adds profiling support for powerpc64. Now we can do application
profiling and kernel profiling. To enable kernel profiling one has to build
kgmon(8). I will enable the build once I managed to build and test powerpc
(32-bit) kernels with profiling support.
- add a powerpc64 PROF_PROLOGUE for _mcount.
- add macros to avoid adding the PROF_PROLOGUE in certain assembly entries.
- apply these macros where needed.
- add size information to the MCOUNT function.
MFC after: 3 weeks, together with r230291
Notes
Notes:
svn path=/head/; revision=230400
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/powerpc64/sys/cerror.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/powerpc64/sys/cerror.S b/lib/libc/powerpc64/sys/cerror.S index 9bf33bf03d7f..515d7e541cab 100644 --- a/lib/libc/powerpc64/sys/cerror.S +++ b/lib/libc/powerpc64/sys/cerror.S @@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$"); * programs and the initial threaded in threaded programs, * it returns a pointer to the global errno variable. */ -ENTRY(HIDENAME(cerror)) +ENTRY_NOPROF(HIDENAME(cerror)) mflr %r0 std %r0,16(%r1) /* save lr */ stdu %r1,-64(%r1) /* allocate new stack frame */ |