ftrace/x86: Add separate function to save regs
Add a way to have different functions calling different trampolines.
If a ftrace_ops wants regs saved on the return, then have only the
functions taht ops register save regs. Functions registered by
other ops would not be affected, unless the functions overlap.
If one ops registered function A, B and C and another ops
registered fucntions to save regs on A, and D, then only functions
A and D would be saving regs. Function B and C would work as normal.
Although A is registered by both ops and saves regs, this is fine
as saving the regs is needed to satisfy one of the ops that calls it
but the regs are ignored by the other ops function.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
4 files changed