aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/gmon.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-02-13 10:47:29 +0000
committerBruce Evans <bde@FreeBSD.org>1997-02-13 10:47:29 +0000
commita7d00b5bf6e6faab2997c47a926bb97fdce0f091 (patch)
tree74327105423fdc4aca556a119eaf1da1dd6f7740 /sys/sys/gmon.h
parent2ff95d56b3d6b5bda033be1f8d1048fdfd7284c7 (diff)
downloadsrc-a7d00b5bf6e6faab2997c47a926bb97fdce0f091.tar.gz
src-a7d00b5bf6e6faab2997c47a926bb97fdce0f091.zip
Moved definition of FUNCTION_ALIGNMENT to a machine-dependent place.
Changed it from 4 to 16 for i386's. It can be anything for i386's, but compiler options limit it to a power of 2, and assembler and linker deficiencies limit it to a small power of 2 (<= 16). We use 16 in the kernel to get smaller tables (see Makefile.i386 and <machine/asmacros.h>). We still use the default of 4 in user mode. Use HISTCOUNTER instead of (*kcount) in the definition of KCOUNT() for consistency with other macros.
Notes
Notes: svn path=/head/; revision=22639
Diffstat (limited to 'sys/sys/gmon.h')
-rw-r--r--sys/sys/gmon.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/sys/gmon.h b/sys/sys/gmon.h
index 71bc91069959..9014ecc23b77 100644
--- a/sys/sys/gmon.h
+++ b/sys/sys/gmon.h
@@ -68,12 +68,7 @@ struct gmonhdr {
* addresses, so that each counter belongs to a unique function.
* A lower density of counters would give less resolution but a
* higher density would be wasted.
- *
- * Assume that function addresses are at least 4-byte-aligned.
- * It would be better to get the linker to align functions more
- * strictly so that we could use smaller tables.
*/
-#define FUNCTION_ALIGNMENT 4
#define HISTFRACTION (FUNCTION_ALIGNMENT / sizeof(HISTCOUNTER) == 0 \
? 1 : FUNCTION_ALIGNMENT / sizeof(HISTCOUNTER))