diff options
author | Alan Maguire <alan.maguire@oracle.com> | 2021-07-14 11:43:59 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-07-15 17:59:14 -0700 |
commit | a2488b5f483f18e6e34be2a15eb4a79f4a0d8728 (patch) | |
tree | aae9f132250a1913f42af9e93c0b4343c17f663c /kernel/watch_queue.c | |
parent | ac0ed488297a9850b0c285646b7854228368ba6b (diff) |
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 <alan.maguire@oracle.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210714094400.396467-8-jolsa@kernel.org
Diffstat (limited to 'kernel/watch_queue.c')
0 files changed, 0 insertions, 0 deletions