Re: libbpf: pinning multiple progs from the same section

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

 



On Sun, Feb 7, 2021 at 3:36 AM Gilad Reti <gilad.reti@xxxxxxxxx> wrote:
>
> Hello there,
>
> Last year, libbpf added support for attaching multiple handlers to the
> same event by allowing defining multiple progs in the same elf
> section. However, the pin path for a bpf program is obtained via the
> __bpf_program__pin_name function, which uses an escaped version of the
> elf section name as the pin_name. Thus, trying to pin multiple bpf
> programs defined on the same section fails with "File exists" error,
> since libbpf tries to pin more than one program on a single path.
> Does adding the actual program name to the pin path makes sense?

Yes it does, but as Toke mentioned, that would be API-breaking change,
so I'm holding that off to major version bump or at least until we
agree that it's OK to change this behavior from the current
nonsensical one.

>
> Thanks.



[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