diff options
author | John Baldwin <jhb@FreeBSD.org> | 2006-03-29 18:17:03 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2006-03-29 18:17:03 +0000 |
commit | 1aa4d6520064aa5bc5e39f12ccaf3d109b1204f0 (patch) | |
tree | 8ca2fc28d38b37db33356a4b16fbb7a2e1eb8955 /sys | |
parent | 4e095bc04535a4d0d0205ecb131a3e0eb8361bed (diff) | |
download | src-1aa4d6520064aa5bc5e39f12ccaf3d109b1204f0.tar.gz src-1aa4d6520064aa5bc5e39f12ccaf3d109b1204f0.zip |
Move the PC_TO_I() and KCOUNT() macros so they aren't GUPROF specific
since they operate on fields of struct gmonparam which is not GUPROF
specific.
Approved by: bde
Reported by: alc
Notes
Notes:
svn path=/head/; revision=157268
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/gmon.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/sys/gmon.h b/sys/sys/gmon.h index ac405abb726e..1fb850798b5e 100644 --- a/sys/sys/gmon.h +++ b/sys/sys/gmon.h @@ -200,13 +200,14 @@ extern struct gmonparam _gmonparam; #ifdef _KERNEL -#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) +#ifdef GUPROF + +#define CALIB_SCALE 1000 + extern int cputime_bias; int cputime(void); |