s390/ftrace: assume -mhotpatch or -mrecord-mcount always available
Currently the kernel minimal compiler requirement is gcc 4.9 or clang 10.0.1. * gcc -mhotpatch option is supported since 4.8. * A combination of -pg -mrecord-mcount -mnop-mcount -mfentry flags is supported since gcc 9 and since clang 10. Drop support for old -pg function prologues. Which leaves binary compatible -mhotpatch / -mnop-mcount -mfentry prologues in a form: brcl 0,0 Which are also do not require initial nop optimization / conversion and presence of _mcount symbol. Signed-off-by:Vasily Gorbik <gor@linux.ibm.com> Reviewed-by:
Heiko Carstens <hca@linux.ibm.com> Signed-off-by:
Heiko Carstens <hca@linux.ibm.com>
Showing
- arch/s390/include/asm/ftrace.h 10 additions, 21 deletionsarch/s390/include/asm/ftrace.h
- arch/s390/kernel/ftrace.c 14 additions, 49 deletionsarch/s390/kernel/ftrace.c
- arch/s390/kernel/mcount.S 0 additions, 8 deletionsarch/s390/kernel/mcount.S
- scripts/recordmcount.pl 0 additions, 3 deletionsscripts/recordmcount.pl
Loading
Please register or sign in to comment