]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Add bpf_program__attach_kprobe_opts function
authorJiri Olsa <jolsa@redhat.com>
Wed, 14 Jul 2021 09:43:58 +0000 (11:43 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 16 Jul 2021 00:59:14 +0000 (17:59 -0700)
commit584863f65e9bfe5910cc981b6e4c9d7c46e4bdd2
treeac35f3599ec960ed2eac7a2f2790071da19266b5
parent3b7a357c756e92b289be55551764ddcdfe326ccc
libbpf: Add bpf_program__attach_kprobe_opts function

Adding bpf_program__attach_kprobe_opts that does the same
as bpf_program__attach_kprobe, but takes opts argument.

Currently opts struct holds just retprobe bool, but we will
add new field in following patch.

The function is not exported, so there's no need to add
size to the struct bpf_program_attach_kprobe_opts for now.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210714094400.396467-7-jolsa@kernel.org
tools/lib/bpf/libbpf.c