diff options
author | Prakash Surya <[email protected]> | 2017-09-15 11:47:11 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-09-15 11:47:11 -0700 |
commit | 6384cf4132a39dd0ada7991d551554b718041da9 (patch) | |
tree | 8f65452762d70bf012e5e01a76e73fdb398df5bd /config | |
parent | d9ec8b9b2a3880a1a2b68e57a25833486c3b164d (diff) |
Make "-fno-inline" compile option more accessible
When functions are inlined, it can make the system much more difficult
to instrument using tools such as ftrace, BPF, crash, etc. Thus, to aid
development and increase the system's observability, when the
"--enable-debuginfo" flag is specified, the "-fno-inline" compilation
option will be used for both userspace and kernel modules.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Prakash Surya <[email protected]>
Closes #6605
Diffstat (limited to 'config')
-rw-r--r-- | config/zfs-build.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/zfs-build.m4 b/config/zfs-build.m4 index b84658a64..c695a882e 100644 --- a/config/zfs-build.m4 +++ b/config/zfs-build.m4 @@ -45,10 +45,11 @@ AC_DEFUN([ZFS_AC_DEBUG], [ AC_DEFUN([ZFS_AC_DEBUGINFO_KERNEL], [ KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO=y" + KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline" ]) AC_DEFUN([ZFS_AC_DEBUGINFO_USER], [ - DEBUG_CFLAGS="$DEBUG_CFLAGS -g" + DEBUG_CFLAGS="${DEBUG_CFLAGS} -g -fno-inline" ]) AC_DEFUN([ZFS_AC_DEBUGINFO], [ |