aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2021-07-14 09:43:55 +0000
committerAlexei Starovoitov <[email protected]>2021-07-16 00:58:41 +0000
commit9b99edcae5c80c8fb9f8e7149bae528c9e610a72 (patch)
tree252a76f356e1539d453c19ed2065a3e57ed58f8f /net/unix/af_unix.c
parentbpf: Enable BPF_TRAMP_F_IP_ARG for trampolines with call_get_func_ip (diff)
downloadkernel-9b99edcae5c80c8fb9f8e7149bae528c9e610a72.tar.gz
kernel-9b99edcae5c80c8fb9f8e7149bae528c9e610a72.zip
bpf: Add bpf_get_func_ip helper for tracing programs
Adding bpf_get_func_ip helper for BPF_PROG_TYPE_TRACING programs, specifically for all trampoline attach types. The trampoline's caller IP address is stored in (ctx - 8) address. so there's no reason to actually call the helper, but rather fixup the call instruction and return [ctx - 8] value directly. Signed-off-by: Jiri Olsa <[email protected]> Signed-off-by: Alexei Starovoitov <[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