diff options
| author | Jiri Olsa <[email protected]> | 2021-07-14 09:43:56 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-07-16 00:59:09 +0000 |
| commit | 9ffd9f3ff7193933dae171740ab70a103d460065 (patch) | |
| tree | a274a2d5bad87bc289efe4c3da0da20bf2e8eed8 /net/unix/af_unix.c | |
| parent | bpf: Add bpf_get_func_ip helper for tracing programs (diff) | |
| download | kernel-9ffd9f3ff7193933dae171740ab70a103d460065.tar.gz kernel-9ffd9f3ff7193933dae171740ab70a103d460065.zip | |
bpf: Add bpf_get_func_ip helper for kprobe programs
Adding bpf_get_func_ip helper for BPF_PROG_TYPE_KPROBE programs,
so it's now possible to call bpf_get_func_ip from both kprobe and
kretprobe programs.
Taking the caller's address from 'struct kprobe::addr', which is
defined for both kprobe and kretprobe.
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Reviewed-by: Masami Hiramatsu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
