diff options
author | 2021-09-14 23:38:57 +0900 | |
---|---|---|
committer | 2021-09-30 21:24:05 -0400 | |
commit | 02afb8d6048d6526619e6e2dcdc95ce9c2bdb52f (patch) | |
tree | e6ef7257316cb3fb38b2797b8bd3e03ea870558b /include/linux/objtool.h | |
parent | kprobes: Use helper to parse boolean input from userspace (diff) | |
download | linux-rng-02afb8d6048d6526619e6e2dcdc95ce9c2bdb52f.tar.xz linux-rng-02afb8d6048d6526619e6e2dcdc95ce9c2bdb52f.zip |
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>
Diffstat (limited to 'include/linux/objtool.h')
0 files changed, 0 insertions, 0 deletions