On Wed, Jul 21, 2021 at 2:58 PM Jiri Olsa <jolsa@xxxxxxxxxx> wrote: > > Exporting bpf_program__attach_kprobe_opts function. I've updated all commits to use more customary imperative language ("export" instead of "exporting", "add" instead of "adding"). Also fixed a few styling issues and changed the order of kprobe_opts field (offset first, bool retprobe next), so that we don't have unnecessary internal padding. Pushed to bpf-next, thanks! > > Renaming bpf_program_attach_kprobe_opts to bpf_kprobe_opts > and adding 'sz' field for forward/backward compatiblity. > > Suggested-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx> > --- > tools/lib/bpf/libbpf.c | 31 +++++++++++++++++-------------- > tools/lib/bpf/libbpf.h | 14 ++++++++++++++ > tools/lib/bpf/libbpf.map | 1 + > 3 files changed, 32 insertions(+), 14 deletions(-) > [...]