diff options
| author | Punit Agrawal <[email protected]> | 2021-09-14 23:38:57 +0900 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2021-09-30 21:24:05 -0400 |
| commit | 02afb8d6048d6526619e6e2dcdc95ce9c2bdb52f (patch) | |
| tree | e6ef7257316cb3fb38b2797b8bd3e03ea870558b /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 5d6de7d7fb4b0f752adff80ca003b4fd4b467b64 (diff) | |
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 <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions