Searched hist:"02 afb8d6048d6526619e6e2dcdc95ce9c2bdb52f" (Results 1 – 1 of 1) sorted by relevance
/linux/include/linux/ |
H A D | kprobes.h | diff 02afb8d6048d6526619e6e2dcdc95ce9c2bdb52f Tue Sep 14 16:38:57 CEST 2021 Punit Agrawal <punitagrawal@gmail.com> kprobe: Simplify prepare_kprobe() by dropping redundant version
The function prepare_kprobe() is called during kprobe registration and is responsible for ensuring any architecture related preparation for the kprobe is done before returning.
One of two versions of prepare_kprobe() is chosen depending on the availability of KPROBE_ON_FTRACE in the kernel configuration.
Simplify the code by dropping the version when KPROBE_ON_FTRACE is not selected - instead relying on kprobe_ftrace() to return false when KPROBE_ON_FTRACE is not set.
No functional change.
Link: https://lkml.kernel.org/r/163163033696.489837.9264661820279300788.stgit@devnote2
Signed-off-by: Punit Agrawal <punitagrawal@gmail.com> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
|