Re: [PATCH bpf-next 12/15] libbpf: Support extern kernel function

2021-03-19 Thread Andrii Nakryiko
On Thu, Mar 18, 2021 at 10:06 PM Martin KaFai Lau wrote: > > On Thu, Mar 18, 2021 at 09:11:39PM -0700, Andrii Nakryiko wrote: > > On Tue, Mar 16, 2021 at 12:02 AM Martin KaFai Lau wrote: > > > > > > This patch is to make libbpf able to handle the following extern > > > kernel function declaration

Re: [PATCH bpf-next 12/15] libbpf: Support extern kernel function

2021-03-18 Thread Martin KaFai Lau
On Thu, Mar 18, 2021 at 09:11:39PM -0700, Andrii Nakryiko wrote: > On Tue, Mar 16, 2021 at 12:02 AM Martin KaFai Lau wrote: > > > > This patch is to make libbpf able to handle the following extern > > kernel function declaration and do the needed relocations before > > loading the bpf program to t

Re: [PATCH bpf-next 12/15] libbpf: Support extern kernel function

2021-03-18 Thread Andrii Nakryiko
On Tue, Mar 16, 2021 at 12:02 AM Martin KaFai Lau wrote: > > This patch is to make libbpf able to handle the following extern > kernel function declaration and do the needed relocations before > loading the bpf program to the kernel. > > extern int foo(struct sock *) __attribute__((section(".ksyms

[PATCH bpf-next 12/15] libbpf: Support extern kernel function

2021-03-15 Thread Martin KaFai Lau
This patch is to make libbpf able to handle the following extern kernel function declaration and do the needed relocations before loading the bpf program to the kernel. extern int foo(struct sock *) __attribute__((section(".ksyms"))) In the collect extern phase, needed changes is made to bpf_obje