diff options
| author | Alexei Starovoitov <[email protected]> | 2021-07-16 00:17:43 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-07-16 00:59:27 +0000 |
| commit | 1554a080e76554fa71004bba5b93c4695932a4d7 (patch) | |
| tree | 4c31210d0e19c5a633a6ebc298aa7aa63485fb58 /net/unix/af_unix.c | |
| parent | Merge branch 'bpf-timers' (diff) | |
| parent | selftests/bpf: Add test for bpf_get_func_ip in kprobe+offset probe (diff) | |
| download | kernel-1554a080e76554fa71004bba5b93c4695932a4d7.tar.gz kernel-1554a080e76554fa71004bba5b93c4695932a4d7.zip | |
Merge branch 'Add bpf_get_func_ip helper'
Jiri Olsa says:
====================
Add bpf_get_func_ip helper that returns IP address of the
caller function for trampoline and krobe programs.
There're 2 specific implementation of the bpf_get_func_ip
helper, one for trampoline progs and one for kprobe/kretprobe
progs.
The trampoline helper call is replaced/inlined by the verifier
with simple move instruction. The kprobe/kretprobe is actual
helper call that returns prepared caller address.
Also available at:
https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
bpf/get_func_ip
v4 changes:
- dropped jit/x86 check for get_func_ip tracing check [Alexei]
- added code to bpf_get_func_ip_tracing [Alexei]
and tested that it works without inlining [Alexei]
- changed has_get_func_ip to check_get_func_ip [Andrii]
- replaced test assert loop with explicit asserts [Andrii]
- adde bpf_program__attach_kprobe_opts function
and use it for offset setup [Andrii]
- used bpf_program__set_autoload(false) for test6 [Andrii]
- added Masami's ack
v3 changes:
- resend with Masami in cc and v3 in each patch subject
v2 changes:
- use kprobe_running to get kprobe instead of cpu var [Masami]
- added support to add kprobe on function+offset
and test for that [Alan]
====================
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
