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.