bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libbpf: pinning multiple progs from the same section
@ 2021-02-07 11:35 Gilad Reti
  2021-02-08  8:57 ` Gilad Reti
  2021-02-08 22:36 ` Andrii Nakryiko
  0 siblings, 2 replies; 15+ messages in thread
From: Gilad Reti @ 2021-02-07 11:35 UTC (permalink / raw)
  To: bpf; +Cc: Andrii Nakryiko

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?

Thanks.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-02-10 20:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-07 11:35 libbpf: pinning multiple progs from the same section Gilad Reti
2021-02-08  8:57 ` Gilad Reti
2021-02-08 11:42   ` Toke Høiland-Jørgensen
2021-02-08 11:57     ` Gilad Reti
2021-02-08 14:28       ` Toke Høiland-Jørgensen
2021-02-08 14:44         ` Gilad Reti
2021-02-08 15:09           ` Toke Høiland-Jørgensen
2021-02-08 15:50             ` Gilad Reti
2021-02-08 17:55               ` Toke Høiland-Jørgensen
2021-02-08 18:19                 ` Gilad Reti
2021-02-08 19:16                   ` Toke Høiland-Jørgensen
2021-02-09  8:35                     ` Gilad Reti
2021-02-09 11:03                       ` Toke Høiland-Jørgensen
2021-02-10 20:04                         ` Andrii Nakryiko
2021-02-08 22:36 ` Andrii Nakryiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).