[Forgot to commit this in the batch a few days ago.]

Fixed profiling of elf kernels.  Made high resolution profiling compile
for elf kernels (it is broken for all kernels due to lack of egcs support).

Renaming of many assembler labels is avoided by declaring by declaring
the labels that need to be visible to gprof as having type "function"
and depending on the elf version of gprof being zealous about discarding
the others.  A few type declarations are still missing, mainly for SMP.

PR:		9413
Submitted by:	Assar Westerlund <assar@sics.se> (initial parts)
This commit is contained in:
Bruce Evans 1999-05-10 10:51:25 +00:00
parent 7a9757f3a5
commit 149c3aa60a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46881
2 changed files with 6 additions and 2 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: Id: machdep.c,v 1.193 1996/06/18 01:22:04 bde Exp * from: Id: machdep.c,v 1.193 1996/06/18 01:22:04 bde Exp
* $Id: identcpu.c,v 1.60 1999/03/10 20:42:00 roberto Exp $ * $Id: identcpu.c,v 1.61 1999/05/03 23:57:13 billf Exp $
*/ */
#include "opt_cpu.h" #include "opt_cpu.h"
@ -633,6 +633,7 @@ __asm
(" ("
.text .text
.p2align 2,0x90 .p2align 2,0x90
.type " __XSTRING(CNAME(bluetrap6)) ",@function
" __XSTRING(CNAME(bluetrap6)) ": " __XSTRING(CNAME(bluetrap6)) ":
ss ss
movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) " movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) "
@ -649,6 +650,7 @@ __asm
(" ("
.text .text
.p2align 2,0x90 .p2align 2,0x90
.type " __XSTRING(CNAME(bluetrap13)) ",@function
" __XSTRING(CNAME(bluetrap13)) ": " __XSTRING(CNAME(bluetrap13)) ":
ss ss
movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) " movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) "

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: Id: machdep.c,v 1.193 1996/06/18 01:22:04 bde Exp * from: Id: machdep.c,v 1.193 1996/06/18 01:22:04 bde Exp
* $Id: identcpu.c,v 1.60 1999/03/10 20:42:00 roberto Exp $ * $Id: identcpu.c,v 1.61 1999/05/03 23:57:13 billf Exp $
*/ */
#include "opt_cpu.h" #include "opt_cpu.h"
@ -633,6 +633,7 @@ __asm
(" ("
.text .text
.p2align 2,0x90 .p2align 2,0x90
.type " __XSTRING(CNAME(bluetrap6)) ",@function
" __XSTRING(CNAME(bluetrap6)) ": " __XSTRING(CNAME(bluetrap6)) ":
ss ss
movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) " movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) "
@ -649,6 +650,7 @@ __asm
(" ("
.text .text
.p2align 2,0x90 .p2align 2,0x90
.type " __XSTRING(CNAME(bluetrap13)) ",@function
" __XSTRING(CNAME(bluetrap13)) ": " __XSTRING(CNAME(bluetrap13)) ":
ss ss
movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) " movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) "