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.
This commit is contained in:
John Birrell 2008-05-23 03:52:55 +00:00
parent 75d94ef6ca
commit 91d0f31d5f
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -63,6 +63,7 @@ DEV_ATPIC opt_atpic.h
# Debugging
STOP_NMI opt_cpu.h
KDTRACE_FRAME opt_kdtrace.h
# BPF just-in-time compiler
BPF_JITTER opt_bpf.h