diff options
author | Bruce Evans <bde@FreeBSD.org> | 2004-05-19 15:41:26 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 2004-05-19 15:41:26 +0000 |
commit | b2321e7cdbba8fd1af2fd1c30242753d5c6d93c7 (patch) | |
tree | cf3f3f9c7355143e263b31af5e429443de31dd41 /sys/sparc64 | |
parent | 5ad6c3b1eaef315edd7c73241a27ae2dddb71edf (diff) | |
download | src-b2321e7cdbba8fd1af2fd1c30242753d5c6d93c7.tar.gz src-b2321e7cdbba8fd1af2fd1c30242753d5c6d93c7.zip |
Moved most of the "MI" definitions and declarations from <machine/profile.h>
to <sys/gmon.h>. Cleaned them up a little by not attempting to ifdef
for incomplete and out of date support for GUPROF in userland, as in
the sparc64 version.
Notes
Notes:
svn path=/head/; revision=129444
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/include/profile.h | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/sys/sparc64/include/profile.h b/sys/sparc64/include/profile.h index 398f5c7c64d4..2cf1cef582b6 100644 --- a/sys/sparc64/include/profile.h +++ b/sys/sparc64/include/profile.h @@ -46,38 +46,9 @@ typedef u_long fptrdiff_t; #define MCOUNT_ENTER(s) s = rdpr(pil); wrpr(pil, 0, 14) #define MCOUNT_EXIT(s) wrpr(pil, 0, s) -#ifdef GUPROF - -#define CALIB_SCALE 1000 -#define KCOUNT(p,index) \ - ((p)->kcount[(index) / (HISTFRACTION * sizeof(HISTCOUNTER))]) -#define PC_TO_I(p, pc) ((uintfptr_t)(pc) - (uintfptr_t)(p)->lowpc) - -struct gmonparam; - -extern int cputime_bias; - -int cputime(void); -void nullfunc_loop_profiled(void); -void nullfunc_profiled(void); -void startguprof(struct gmonparam *p); -void stopguprof(struct gmonparam *p); - -#else /* GUPROF */ - -#define startguprof(p) -#define stopguprof(p) - -#endif /* GUPROF */ - -void empty_loop(void); -void kmupetext(uintfptr_t nhighpc); void mcount(uintfptr_t frompc, uintfptr_t selfpc); -void mexitcount(uintfptr_t selfpc); -void nullfunc(void); -void nullfunc_loop(void); -#else /* _KERNEL */ +#else /* !_KERNEL */ typedef u_long uintfptr_t; |