]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
parisc: Merge ftrace C-helper and assembler functions into .text.hot section
authorHelge Deller <deller@gmx.de>
Fri, 29 Apr 2016 20:07:31 +0000 (22:07 +0200)
committerHelge Deller <deller@gmx.de>
Sun, 22 May 2016 19:46:21 +0000 (21:46 +0200)
commit4df3c9ec12077384e0add54f28a9b079a87b59ef
tree456bf8e9bca4ae2b5e5d1afb58246da6ba5ee65e
parenta4351cb5511b917556c796d97068318a53a00849
parisc: Merge ftrace C-helper and assembler functions into .text.hot section

When enabling all-branch ftrace support (CONFIG_PROFILE_ALL_BRANCHES)
the kernel gets really huge and some ftrace assembler functions like
mcount can't reach the ftrace helper functions which are written in C.
Avoid this problem of too distant branches by moving the ftrace C-helper
functions into the .text.hot section which is put in front of the
standard .text section by the linker.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/entry.S
arch/parisc/kernel/ftrace.c