On Wednesday, January 22nd, 2025 at 2:56 AM, Alan Maguire <alan.maguire@xxxxxxxxxx> wrote: > > > On 22/01/2025 02:53, Ihor Solodrai wrote: > > > Add the following functions to libbpf API: > > * btf__add_type_attr() > > * btf__add_decl_attr() > > > > These functions allow to add to BTF the type tags and decl tags with > > info->kflag set to 1. The kflag indicates that the tag directly > > encodes an attribute and not a normal tag. > > > > See Documentation/bpf/btf.rst changes for details on the semantics. > > > > Suggested-by: Andrii Nakryiko andrii@xxxxxxxxxx > > Signed-off-by: Ihor Solodrai ihor.solodrai@xxxxx > > > need to sync include/uapi/linux/btf.h with > tools/include/uapi/linux/btf.h, but other than that > > Reviewed-by: Alan Maguire alan.maguire@xxxxxxxxxx I haven't realized btf.h is copied in two places. Will fix, thanks. > > [...]