diff options
author | Jiri Olsa <jolsa@kernel.org> | 2022-09-26 17:33:35 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-09-26 20:30:39 -0700 |
commit | bf7a87f1075f67c286f794519f0fedfa8b0b18cc (patch) | |
tree | 9cada9784b9405514d3ca1cd31d92390730755a3 /include/linux/kprobes.h | |
parent | bec217197b412d74168c6a42fc0f76d0cc9cad00 (diff) | |
download | lwn-bf7a87f1075f67c286f794519f0fedfa8b0b18cc.tar.gz lwn-bf7a87f1075f67c286f794519f0fedfa8b0b18cc.zip |
kprobes: Add new KPROBE_FLAG_ON_FUNC_ENTRY kprobe flag
Adding KPROBE_FLAG_ON_FUNC_ENTRY kprobe flag to indicate that
attach address is on function entry. This is used in following
changes in get_func_ip helper to return correct function address.
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220926153340.1621984-2-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/kprobes.h')
-rw-r--r-- | include/linux/kprobes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index 55041d2f884d..a0b92be98984 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h @@ -103,6 +103,7 @@ struct kprobe { * this flag is only for optimized_kprobe. */ #define KPROBE_FLAG_FTRACE 8 /* probe is using ftrace */ +#define KPROBE_FLAG_ON_FUNC_ENTRY 16 /* probe is on the function entry */ /* Has this kprobe gone ? */ static inline bool kprobe_gone(struct kprobe *p) |