]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitac0ed488297a9850b0c285646b7854228368ba6b
treeac35f3599ec960ed2eac7a2f2790071da19266b5
parent5d8b583d04aedb3bd5f6d227a334c210c7d735f9
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