]> 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)
commit48f708f45bb0a5e09a493cdda9276c532b7435e8
treeac35f3599ec960ed2eac7a2f2790071da19266b5
parentc3e7948f147b22be925deba5ef23c199cd392d0d
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