diff options
author | jb <jb@FreeBSD.org> | 2008-05-23 03:52:55 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2008-05-23 03:52:55 +0000 |
commit | 8ca3be0a3b7da2121e336a438569a0ef91ac6f2e (patch) | |
tree | cb5c041be9422dcb61baf4d22f9b8b01d86c1d9d /sys/conf | |
parent | 858f2ace1b87f5b2bf7c897509e00098ff0e85fe (diff) | |
download | FreeBSD-src-8ca3be0a3b7da2121e336a438569a0ef91ac6f2e.zip FreeBSD-src-8ca3be0a3b7da2121e336a438569a0ef91ac6f2e.tar.gz |
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.
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/Makefile.amd64 | 3 | ||||
-rw-r--r-- | sys/conf/options.amd64 | 1 |
2 files changed, 3 insertions, 1 deletions
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 diff --git a/sys/conf/options.amd64 b/sys/conf/options.amd64 index b05b770..00faf95 100644 --- a/sys/conf/options.amd64 +++ b/sys/conf/options.amd64 @@ -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 |