From 8ca3be0a3b7da2121e336a438569a0ef91ac6f2e Mon Sep 17 00:00:00 2001 From: jb Date: Fri, 23 May 2008 03:52:55 +0000 Subject: 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. --- sys/conf/Makefile.amd64 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/conf/Makefile.amd64') diff --git a/sys/conf/Makefile.amd64 b/sys/conf/Makefile.amd64 index 6f35c9d3..6fe4544 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 -- cgit v1.1