diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2018-08-06 15:17:44 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-08-16 04:37:22 +0200 |
commit | 07d0408120216b60625c9a5b8012d1c3a907984d (patch) | |
tree | 429c3adb6437a1d828e3debdd3ab163e6ae16c90 /arch/s390/kernel | |
parent | tracing: Handle CC_FLAGS_FTRACE more accurately (diff) | |
download | linux-07d0408120216b60625c9a5b8012d1c3a907984d.tar.xz linux-07d0408120216b60625c9a5b8012d1c3a907984d.zip |
tracing: Avoid calling cc-option -mrecord-mcount for every Makefile
Currently if CONFIG_FTRACE_MCOUNT_RECORD is enabled -mrecord-mcount
compiler flag support is tested for every Makefile.
Top 4 cc-option usages:
511 -mrecord-mcount
11 -fno-stack-protector
9 -Wno-override-init
2 -fsched-pressure
To address that move cc-option from scripts/Makefile.build to top Makefile
and export CC_USING_RECORD_MCOUNT to be used in original place.
While doing that also add -mrecord-mcount to CC_FLAGS_FTRACE (if gcc
actually supports it).
Link: http://lkml.kernel.org/r/patch-2.thread-aa7b8d.git-de935bace15a.your-ad-here.call-01533557518-ext-9465@work.hours
Acked-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'arch/s390/kernel')
0 files changed, 0 insertions, 0 deletions