1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00

Add a dummy ___bb_init_func for BB profiling of the kernel.

To use this: recompile src/gnu/usr.bin/cc, compile your kernel.  The
files you want to profile should be compiled with '-a -g'.  "strip -x"
the kernel and run.  You don't need to profile all files in the kernel.
My next commit is the program to extract the data from the running kernel.
This commit is contained in:
Poul-Henning Kamp 1995-03-10 08:41:26 +00:00
parent a5d1fbe54d
commit 9eefa8bfc4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6981
3 changed files with 39 additions and 3 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.48 1995/02/11 04:21:22 phk Exp $
* $Id: locore.s,v 1.49 1995/02/17 02:22:41 phk Exp $
*/
/*
@ -758,3 +758,15 @@ NON_GPROF_ENTRY(sigcode)
.globl _szsigcode
_szsigcode:
.long _szsigcode-_sigcode
/*
* Here for doing BB-profiling (gcc -a).
* We rely on the "bbset" instead, but need a dummy function.
*/
.text
.align 2
.globl ___bb_init_func
___bb_init_func:
movl 4(%ebp),%eax
movl $1,(%eax)
ret

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.48 1995/02/11 04:21:22 phk Exp $
* $Id: locore.s,v 1.49 1995/02/17 02:22:41 phk Exp $
*/
/*
@ -758,3 +758,15 @@ NON_GPROF_ENTRY(sigcode)
.globl _szsigcode
_szsigcode:
.long _szsigcode-_sigcode
/*
* Here for doing BB-profiling (gcc -a).
* We rely on the "bbset" instead, but need a dummy function.
*/
.text
.align 2
.globl ___bb_init_func
___bb_init_func:
movl 4(%ebp),%eax
movl $1,(%eax)
ret

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.48 1995/02/11 04:21:22 phk Exp $
* $Id: locore.s,v 1.49 1995/02/17 02:22:41 phk Exp $
*/
/*
@ -758,3 +758,15 @@ NON_GPROF_ENTRY(sigcode)
.globl _szsigcode
_szsigcode:
.long _szsigcode-_sigcode
/*
* Here for doing BB-profiling (gcc -a).
* We rely on the "bbset" instead, but need a dummy function.
*/
.text
.align 2
.globl ___bb_init_func
___bb_init_func:
movl 4(%ebp),%eax
movl $1,(%eax)
ret