mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
kprobes/x86: ftrace based optimization for x86
Add function tracer based kprobe optimization support handlers on x86. This allows kprobes to use function tracer for probing on mcount call. Link: http://lkml.kernel.org/r/[email protected] Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ananth N Mavinakayanahalli <[email protected]> Cc: "Frank Ch. Eigler" <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Frederic Weisbecker <[email protected]> Signed-off-by: Masami Hiramatsu <[email protected]> [ Updated to new port of ftrace save regs functions ] Signed-off-by: Steven Rostedt <[email protected]>
This commit is contained in:
parent
ae6aa16fdc
commit
e525389651
4 changed files with 51 additions and 2 deletions
|
|
@ -921,7 +921,7 @@ static __kprobes struct kprobe *alloc_aggr_kprobe(struct kprobe *p)
|
|||
|
||||
#ifdef KPROBES_CAN_USE_FTRACE
|
||||
static struct ftrace_ops kprobe_ftrace_ops __read_mostly = {
|
||||
.regs_func = kprobe_ftrace_handler,
|
||||
.func = kprobe_ftrace_handler,
|
||||
.flags = FTRACE_OPS_FL_SAVE_REGS,
|
||||
};
|
||||
static int kprobe_ftrace_enabled;
|
||||
|
|
|
|||
Loading…
Reference in a new issue