Thread (49 messages) 49 messages, 3 authors, 2021-12-01

Re: [PATCH bpf-next 08/29] bpf: Keep active attached trampoline in bpf_prog

From: Andrii Nakryiko <hidden>
Date: 2021-11-24 21:48:22
Also in: bpf

On Thu, Nov 18, 2021 at 3:25 AM Jiri Olsa [off-list ref] wrote:
Keeping active attached trampoline in bpf_prog so it can be used
in following changes to account for multiple functions attachments
in program.

As EXT programs are not going to be supported in multiple functions
attachment for now, I'm keeping them stored in link.
can the same EXT program be attached twice? If not, why can't you just
use the same prog->aux->trampoline instead of the if/else everywhere?
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
---
 include/linux/bpf.h  |  1 +
 kernel/bpf/syscall.c | 34 +++++++++++++++++++++++++++++-----
 2 files changed, 30 insertions(+), 5 deletions(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help