Re: [PATCH bpf-next v6 2/5] bpf: Expose bpf_get_socket_cookie to tracing programs

2021-02-10 Thread Florent Revest
On Mon, Feb 1, 2021 at 11:37 PM Alexei Starovoitov wrote: > > On Mon, Feb 1, 2021 at 2:32 PM Daniel Borkmann wrote: > > > > On 1/30/21 12:45 PM, Florent Revest wrote: > > > On Fri, Jan 29, 2021 at 1:49 PM Daniel Borkmann > > > wrote: > > >> On 1/29/21 11:57 AM, Daniel Borkmann wrote: > > >>>

Re: [PATCH bpf-next v6 2/5] bpf: Expose bpf_get_socket_cookie to tracing programs

2021-02-01 Thread Alexei Starovoitov
On Mon, Feb 1, 2021 at 2:32 PM Daniel Borkmann wrote: > > On 1/30/21 12:45 PM, Florent Revest wrote: > > On Fri, Jan 29, 2021 at 1:49 PM Daniel Borkmann > > wrote: > >> On 1/29/21 11:57 AM, Daniel Borkmann wrote: > >>> On 1/27/21 10:01 PM, Andrii Nakryiko wrote: > On Tue, Jan 26, 2021 at

Re: [PATCH bpf-next v6 2/5] bpf: Expose bpf_get_socket_cookie to tracing programs

2021-02-01 Thread Daniel Borkmann
On 1/30/21 12:45 PM, Florent Revest wrote: On Fri, Jan 29, 2021 at 1:49 PM Daniel Borkmann wrote: On 1/29/21 11:57 AM, Daniel Borkmann wrote: On 1/27/21 10:01 PM, Andrii Nakryiko wrote: On Tue, Jan 26, 2021 at 10:36 AM Florent Revest wrote: This needs a new helper that: - can work in a

Re: [PATCH bpf-next v6 2/5] bpf: Expose bpf_get_socket_cookie to tracing programs

2021-01-30 Thread Florent Revest
On Fri, Jan 29, 2021 at 1:49 PM Daniel Borkmann wrote: > > On 1/29/21 11:57 AM, Daniel Borkmann wrote: > > On 1/27/21 10:01 PM, Andrii Nakryiko wrote: > >> On Tue, Jan 26, 2021 at 10:36 AM Florent Revest > >> wrote: > >>> > >>> This needs a new helper that: > >>> - can work in a sleepable

Re: [PATCH bpf-next v6 2/5] bpf: Expose bpf_get_socket_cookie to tracing programs

2021-01-30 Thread Florent Revest
On Wed, Jan 27, 2021 at 10:01 PM Andrii Nakryiko wrote: > > On Tue, Jan 26, 2021 at 10:36 AM Florent Revest wrote: > > > > This needs a new helper that: > > - can work in a sleepable context (using sock_gen_cookie) > > - takes a struct sock pointer and checks that it's not NULL > > > >

Re: [PATCH bpf-next v6 2/5] bpf: Expose bpf_get_socket_cookie to tracing programs

2021-01-27 Thread Andrii Nakryiko
On Tue, Jan 26, 2021 at 10:36 AM Florent Revest wrote: > > This needs a new helper that: > - can work in a sleepable context (using sock_gen_cookie) > - takes a struct sock pointer and checks that it's not NULL > > Signed-off-by: Florent Revest > Acked-by: KP Singh > --- > include/linux/bpf.h

[PATCH bpf-next v6 2/5] bpf: Expose bpf_get_socket_cookie to tracing programs

2021-01-26 Thread Florent Revest
This needs a new helper that: - can work in a sleepable context (using sock_gen_cookie) - takes a struct sock pointer and checks that it's not NULL Signed-off-by: Florent Revest Acked-by: KP Singh --- include/linux/bpf.h| 1 + include/uapi/linux/bpf.h | 8