2.name-based u[ret]probe attach Linux5.17新增了uprobe扩展选项,可以像kprobe一样使用函数名称进行attach (https://lore.kernel.org/bpf/1648654000-21758-3-git-send-email-alan.maguire@oracle.com/) 补丁包括几个步骤: 1、首先通过libelf确定符号地址 ...
Wire through bpf_cookie for all attach APIs that use perf_event_open under the hood: - for kprobes, extend existing bpf_kprobe_opts with bpf_cookie field; - for perf_event, uprobe, and tracepoint APIs, add their _opts variants and pass bpf_cookie through opts. For kernel that don't ...