kernel/trace: extract common part in process_fetch_insn
authorSong Chen <chensong_2000@189.cn>
Fri, 30 Dec 2022 06:33:53 +0000 (14:33 +0800)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fri, 24 Feb 2023 01:04:13 +0000 (10:04 +0900)
commitbd78acc89d4147aa4897a4c43e2a74c7df999b12
tree326f886571f1265d2e591241ba75c46073bb2d24
parent672a2bf84061f0f19acfc5869f5b3689759a55a8
kernel/trace: extract common part in process_fetch_insn

Each probe has an instance of process_fetch_insn respectively,
but they have something in common.

This patch aims to extract the common part into
process_common_fetch_insn which can be shared by each probe,
and they only need to focus on their special cases.

Signed-off-by: Song Chen <chensong_2000@189.cn>
Suggested-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
kernel/trace/trace_eprobe.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe_tmpl.h
kernel/trace/trace_uprobe.c