Re: [PATCH bpf-next 1/4] libbpf: expose map elf section name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2022-03-02 at 17:13 -0800, Andrii Nakryiko wrote:
> First, "section_name" here is extremely confusing in the face of
> bpf_program__section_name() which returns a very different thing for
> BPF program. But I think we shouldn't need to do anything extra here.
> Using bpf_map__name() and then bpf_object__find_map_by_name() should
> just work (there is real_name special-handling for maps that start
> with dot). If that real_name special handling doesn't work for
> subskeletons, we should fix that special handling instead of adding a
> special getter.

That special handling did not do the right thing when I first tried it but I'll
poke at it, if that's the preferred approach!

Thanks,
Delyan





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux