s390/ftrace: Add -mfentry and -mnop-mcount support
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 6 Aug 2018 13:17:47 +0000 (15:17 +0200)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 16 Aug 2018 02:39:53 +0000 (22:39 -0400)
commitd983c89cc96a87db0c00821e81aa3d8296c12225
tree76e22e4f68f712b61d4ad485f89c9a2f877cd093
parent2f4df0017baedd535254d987c6b10f855f1fb11f
s390/ftrace: Add -mfentry and -mnop-mcount support

Utilize -mfentry and -mnop-mcount gcc options together with
-mrecord-mcount to get compiler generated calls to the profiling functions
as nops which are compatible with current -mhotpatch=0,3 approach.  At the
same time -mrecord-mcount enables __mcount_loc section generation by
the compiler which allows to avoid using scripts/recordmcount.pl script.

Link: http://lkml.kernel.org/r/patch-4.thread-aa7b8d.git-aa7b8dbf236f.your-ad-here.call-01533557518-ext-9465@work.hours
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
arch/s390/Kconfig
arch/s390/Makefile
arch/s390/include/asm/ftrace.h
arch/s390/kernel/ftrace.c
arch/s390/kernel/mcount.S