diff options
| author | Borislav Petkov <[email protected]> | 2019-10-21 15:18:23 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2019-10-25 08:52:22 +0000 |
| commit | 0f42c1ad44d437f75b840b572376fd538fbb9643 (patch) | |
| tree | b86501365601e861b13c80f35ea0487d3cab0d0b /lib/test_printf.c | |
| parent | x86/asm: Replace WEAK uses by SYM_INNER_LABEL_ALIGN (diff) | |
| download | kernel-0f42c1ad44d437f75b840b572376fd538fbb9643.tar.gz kernel-0f42c1ad44d437f75b840b572376fd538fbb9643.zip | |
x86/ftrace: Get rid of function_hook
History lesson courtesy of Steve:
"When ftrace first was introduced to the kernel, it used gcc's
mcount profiling mechanism. The mcount mechanism would add a call to
"mcount" at the start of every function but after the stack frame was
set up. Later, in gcc 4.6, gcc introduced -mfentry, that would create a
call to "__fentry__" instead of "mcount", before the stack frame was
set up. In order to handle both cases, ftrace defined a macro
"function_hook" that would be either "mcount" or "__fentry__" depending
on which one was being used.
The Linux kernel no longer supports the "mcount" method, thus there's
no reason to keep the "function_hook" define around. Simply use
"__fentry__", as there is no ambiguity to the name anymore."
Drop it everywhere.
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Jiri Slaby <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Peter Zijlstra <[email protected]>
Cc: "Steven Rostedt (VMware)" <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions
