]> git.proxmox.com Git - mirror_zfs.git/commit
Disable "-fipa-sra" when using "--enable-debuginfo"
authorPrakash Surya <prakash.surya@delphix.com>
Mon, 3 Feb 2020 17:21:05 +0000 (09:21 -0800)
committerGitHub <noreply@github.com>
Mon, 3 Feb 2020 17:21:05 +0000 (09:21 -0800)
commit147622b2f1e5d8c51b1aeb4735d5e0fa5c91ff78
tree85f977aa55292b3515fe3628c7bcf894342293ec
parent591505dc2737bcd77c587e369e1d91b0fd97325c
Disable "-fipa-sra" when using "--enable-debuginfo"

To better enable dynamic tracing tools (e.g. "bpftrace") this change
disables the "-fipa-sra" compilation optimization. This way, function
signatures are not changed by the compiler, which allows us to better
attach to kprobes and kretprobes with dynamic tracing tools. Otherwise,
the compiler may append ".isra" to the function name, and possibly
change the function arguments as well.

Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Prakash Surya <prakash.surya@delphix.com>
Closes #9921
config/zfs-build.m4