summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/profile.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-05-19 15:41:26 +0000
committerbde <bde@FreeBSD.org>2004-05-19 15:41:26 +0000
commitf309a749f55f70c2cd608bb5406228db7803873f (patch)
treecf3f3f9c7355143e263b31af5e429443de31dd41 /sys/amd64/include/profile.h
parenteef4a496456d18eaa620744429e239336c1cc5fe (diff)
downloadFreeBSD-src-f309a749f55f70c2cd608bb5406228db7803873f.zip
FreeBSD-src-f309a749f55f70c2cd608bb5406228db7803873f.tar.gz
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.
Diffstat (limited to 'sys/amd64/include/profile.h')
-rw-r--r--sys/amd64/include/profile.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h
index 6e2ffb9..98abf82 100644
--- a/sys/amd64/include/profile.h
+++ b/sys/amd64/include/profile.h
@@ -50,13 +50,9 @@
#define MCOUNT
#ifdef GUPROF
-#define CALIB_SCALE 1000
-#define KCOUNT(p,index) ((p)->kcount[(index) \
- / (HISTFRACTION * sizeof(HISTCOUNTER))])
#define MCOUNT_DECL(s)
#define MCOUNT_ENTER(s)
#define MCOUNT_EXIT(s)
-#define PC_TO_I(p, pc) ((uintfptr_t)(pc) - (uintfptr_t)(p)->lowpc)
#else
#define MCOUNT_DECL(s) u_long s;
#ifdef SMP
@@ -157,19 +153,6 @@ typedef u_int fptrdiff_t;
#ifdef _KERNEL
void mcount(uintfptr_t frompc, uintfptr_t selfpc);
-void kmupetext(uintfptr_t nhighpc);
-
-#ifdef GUPROF
-struct gmonparam;
-
-void nullfunc_loop_profiled(void);
-void nullfunc_profiled(void);
-void startguprof(struct gmonparam *p);
-void stopguprof(struct gmonparam *p);
-#else
-#define startguprof(p)
-#define stopguprof(p)
-#endif /* GUPROF */
#else /* !_KERNEL */
@@ -183,17 +166,4 @@ __END_DECLS
#endif /* _KERNEL */
-#ifdef GUPROF
-/* XXX doesn't quite work outside kernel yet. */
-extern int cputime_bias;
-
-__BEGIN_DECLS
-int cputime(void);
-void empty_loop(void);
-void mexitcount(uintfptr_t selfpc);
-void nullfunc(void);
-void nullfunc_loop(void);
-__END_DECLS
-#endif
-
#endif /* !_MACHINE_PROFILE_H_ */
OpenPOWER on IntegriCloud