diff options
| author | Masami Hiramatsu <[email protected]> | 2020-05-12 08:03:07 +0000 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2020-06-17 01:21:01 +0000 |
| commit | 75ddf64dd276e3fc8906f27549afa229798ad916 (patch) | |
| tree | 78b5a1ca223f240ca44ef3d90286361776092fac /samples/ftrace/sample-trace-array.c | |
| parent | kprobes: Fix to protect kick_kprobe_optimizer() by kprobe_mutex (diff) | |
| download | kernel-75ddf64dd276e3fc8906f27549afa229798ad916.tar.gz kernel-75ddf64dd276e3fc8906f27549afa229798ad916.zip | |
kprobes: Remove redundant arch_disarm_kprobe() call
Fix to remove redundant arch_disarm_kprobe() call in
force_unoptimize_kprobe(). This arch_disarm_kprobe()
will be invoked if the kprobe is optimized but disabled,
but that means the kprobe (optprobe) is unused (and
unoptimized) state.
In that case, unoptimize_kprobe() puts it in freeing_list
and kprobe_optimizer (do_unoptimize_kprobes()) automatically
disarm it. Thus this arch_disarm_kprobe() is redundant.
Link: http://lkml.kernel.org/r/158927058719.27680.17183632908465341189.stgit@devnote2
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'samples/ftrace/sample-trace-array.c')
0 files changed, 0 insertions, 0 deletions
