mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
[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:
parent
7a9757f3a5
commit
149c3aa60a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46881
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* 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"
|
||||
@ -633,6 +633,7 @@ __asm
|
||||
("
|
||||
.text
|
||||
.p2align 2,0x90
|
||||
.type " __XSTRING(CNAME(bluetrap6)) ",@function
|
||||
" __XSTRING(CNAME(bluetrap6)) ":
|
||||
ss
|
||||
movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) "
|
||||
@ -649,6 +650,7 @@ __asm
|
||||
("
|
||||
.text
|
||||
.p2align 2,0x90
|
||||
.type " __XSTRING(CNAME(bluetrap13)) ",@function
|
||||
" __XSTRING(CNAME(bluetrap13)) ":
|
||||
ss
|
||||
movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) "
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* 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"
|
||||
@ -633,6 +633,7 @@ __asm
|
||||
("
|
||||
.text
|
||||
.p2align 2,0x90
|
||||
.type " __XSTRING(CNAME(bluetrap6)) ",@function
|
||||
" __XSTRING(CNAME(bluetrap6)) ":
|
||||
ss
|
||||
movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) "
|
||||
@ -649,6 +650,7 @@ __asm
|
||||
("
|
||||
.text
|
||||
.p2align 2,0x90
|
||||
.type " __XSTRING(CNAME(bluetrap13)) ",@function
|
||||
" __XSTRING(CNAME(bluetrap13)) ":
|
||||
ss
|
||||
movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) "
|
||||
|
Loading…
Reference in New Issue
Block a user