aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/Makefile.amd64
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>2008-05-23 03:52:55 +0000
committerJohn Birrell <jb@FreeBSD.org>2008-05-23 03:52:55 +0000
commit91d0f31d5f60eb98c41ee92152633d60bbc2682b (patch)
treecb5c041be9422dcb61baf4d22f9b8b01d86c1d9d /sys/conf/Makefile.amd64
parent75d94ef6ca242e5ebc344ed1453b99fb25513a42 (diff)
downloadsrc-91d0f31d5f60eb98c41ee92152633d60bbc2682b.tar.gz
src-91d0f31d5f60eb98c41ee92152633d60bbc2682b.zip
Add a kernel option for amd64 to compile with the frame on the stack
so that the DTrace Function Bounadry Trace (fbt) provider can get coverage of most functions in the kernel.
Notes
Notes: svn path=/head/; revision=179225
Diffstat (limited to 'sys/conf/Makefile.amd64')
-rw-r--r--sys/conf/Makefile.amd643
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/conf/Makefile.amd64 b/sys/conf/Makefile.amd64
index 6f35c9d32f31..6fe45445d827 100644
--- a/sys/conf/Makefile.amd64
+++ b/sys/conf/Makefile.amd64
@@ -32,8 +32,9 @@ S= ../../..
.include "$S/conf/kern.pre.mk"
DDB_ENABLED!= grep DDB opt_ddb.h || true
+DTR_ENABLED!= grep KDTRACE_FRAME opt_kdtrace.h || true
HWPMC_ENABLED!= grep HWPMC opt_hwpmc_hooks.h || true
-.if !empty(DDB_ENABLED) || !empty(HWPMC_ENABLED)
+.if !empty(DDB_ENABLED) || !empty(DTR_ENABLED) || !empty(HWPMC_ENABLED)
CFLAGS+= -fno-omit-frame-pointer
.endif