On Thu, Feb 9, 2023 at 4:13 PM Ilya Leoshkevich <iii@xxxxxxxxxxxxx> wrote: > > Use the new type-safe wrappers around bpf_obj_get_info_by_fd(). > > Signed-off-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx> > --- This will cause unnecessary pain for perf for a small gain. perf supports linking libbpf dynamically, so using some very recent APIs is a complication. So please drop this patch. Samples and bpftool conversion is totally fine, IMO. > tools/perf/util/bpf-utils.c | 4 ++-- > tools/perf/util/bpf_counter.c | 2 +- > tools/perf/util/bpf_counter.h | 6 +++--- > 3 files changed, 6 insertions(+), 6 deletions(-) > [...]