diff options
| author | Alan Maguire <[email protected]> | 2021-07-14 09:43:59 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-07-16 00:59:14 +0000 |
| commit | a2488b5f483f18e6e34be2a15eb4a79f4a0d8728 (patch) | |
| tree | aae9f132250a1913f42af9e93c0b4343c17f663c /net/unix/af_unix.c | |
| parent | libbpf: Add bpf_program__attach_kprobe_opts function (diff) | |
| download | kernel-a2488b5f483f18e6e34be2a15eb4a79f4a0d8728.tar.gz kernel-a2488b5f483f18e6e34be2a15eb4a79f4a0d8728.zip | |
libbpf: Allow specification of "kprobe/function+offset"
kprobes can be placed on most instructions in a function, not
just entry, and ftrace and bpftrace support the function+offset
notification for probe placement. Adding parsing of func_name
into func+offset to bpf_program__attach_kprobe() allows the
user to specify
SEC("kprobe/bpf_fentry_test5+0x6")
...for example, and the offset can be passed to perf_event_open_probe()
to support kprobe attachment.
Signed-off-by: Alan Maguire <[email protected]>
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
