On Fri, Jun 3, 2022 at 2:35 PM Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> wrote: > > On Wed, Jun 1, 2022 at 12:02 PM Stanislav Fomichev <sdf@xxxxxxxxxx> wrote: > > > > Implement bpf_prog_query_opts as a more expendable version of > > bpf_prog_query. Expose new prog_attach_flags and attach_btf_func_id as > > well: > > > > * prog_attach_flags is a per-program attach_type; relevant only for > > lsm cgroup program which might have different attach_flags > > per attach_btf_id > > * attach_btf_func_id is a new field expose for prog_query which > > specifies real btf function id for lsm cgroup attachments > > > > Signed-off-by: Stanislav Fomichev <sdf@xxxxxxxxxx> > > --- > > tools/include/uapi/linux/bpf.h | 3 +++ > > tools/lib/bpf/bpf.c | 40 +++++++++++++++++++++++++++------- > > tools/lib/bpf/bpf.h | 15 +++++++++++++ > > tools/lib/bpf/libbpf.map | 2 +- > > 4 files changed, 51 insertions(+), 9 deletions(-) > > > > Few consistency nits, but otherwise: > > Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> Thank you for the review, agreed, will address everything in a respin.