summaryrefslogtreecommitdiffstats
path: root/Documentation/bpf
diff options
context:
space:
mode:
authorMartin KaFai Lau <martin.lau@kernel.org>2023-08-07 16:42:58 -0700
committerMartin KaFai Lau <martin.lau@kernel.org>2023-08-07 16:43:01 -0700
commiteb62e6aef940fcb1879100130068369d4638088f (patch)
tree1d59328a23a48b50a2714419b04a96f092cfae21 /Documentation/bpf
parenta5c0a42bd3746091777642d0588102a3a42ac031 (diff)
parent7febf573a58b55170782985c031dfaf805662297 (diff)
downloadlinux-stable-eb62e6aef940fcb1879100130068369d4638088f.tar.gz
linux-stable-eb62e6aef940fcb1879100130068369d4638088f.tar.bz2
linux-stable-eb62e6aef940fcb1879100130068369d4638088f.zip
Merge branch 'bpf: Support bpf_get_func_ip helper in uprobes'
Jiri Olsa says: ==================== adding support for bpf_get_func_ip helper for uprobe program to return probed address for both uprobe and return uprobe as suggested by Andrii in [1]. We agreed that uprobe can have special use of bpf_get_func_ip helper that differs from kprobe. The kprobe bpf_get_func_ip returns: - address of the function if probe is attach on function entry for both kprobe and return kprobe - 0 if the probe is not attach on function entry The uprobe bpf_get_func_ip returns: - address of the probe for both uprobe and return uprobe The reason for this semantic change is that kernel can't really tell if the probe user space address is function entry. v3 changes: - removed bpf_get_func_ip_uprobe helper function [Yonghong] Also available at: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git uprobe_get_func_ip [1] https://lore.kernel.org/bpf/CAEf4BzZ=xLVkG5eurEuvLU79wAMtwho7ReR+XJAgwhFF4M-7Cg@mail.gmail.com/ ==================== Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'Documentation/bpf')
0 files changed, 0 insertions, 0 deletions