Re: [PATCH bpf-next] libbpf: fix probe code to return EPERM if encountered

2020-05-04 Thread Eelco Chaudron
On 1 May 2020, at 21:16, Andrii Nakryiko wrote: > On Fri, May 1, 2020 at 2:56 AM Eelco Chaudron wrote: >> >> Let me know, and I sent out a v2. > > Yes, that's the split I had in mind, but I'd move > bpf_object__probe_loading() call directly into bpf_object__load() to > be the first thing to c

Re: [PATCH bpf-next] libbpf: fix probe code to return EPERM if encountered

2020-05-01 Thread Andrii Nakryiko
On Fri, May 1, 2020 at 2:56 AM Eelco Chaudron wrote: > > > > On 30 Apr 2020, at 20:12, Andrii Nakryiko wrote: > > > On Thu, Apr 30, 2020 at 3:24 AM Eelco Chaudron > > wrote: > >> > >> When the probe code was failing for any reason ENOTSUP was returned, > >> even > >> if this was due to no having

Re: [PATCH bpf-next] libbpf: fix probe code to return EPERM if encountered

2020-05-01 Thread Eelco Chaudron
On 30 Apr 2020, at 20:12, Andrii Nakryiko wrote: On Thu, Apr 30, 2020 at 3:24 AM Eelco Chaudron wrote: When the probe code was failing for any reason ENOTSUP was returned, even if this was due to no having enough lock space. This patch fixes this by returning EPERM to the user applicatio

Re: [PATCH bpf-next] libbpf: fix probe code to return EPERM if encountered

2020-04-30 Thread Andrii Nakryiko
On Thu, Apr 30, 2020 at 3:24 AM Eelco Chaudron wrote: > > When the probe code was failing for any reason ENOTSUP was returned, even > if this was due to no having enough lock space. This patch fixes this by > returning EPERM to the user application, so it can respond and increase > the RLIMIT_MEML

Re: [PATCH bpf-next] libbpf: fix probe code to return EPERM if encountered

2020-04-30 Thread Toke Høiland-Jørgensen
Eelco Chaudron writes: > When the probe code was failing for any reason ENOTSUP was returned, even > if this was due to no having enough lock space. This patch fixes this by > returning EPERM to the user application, so it can respond and increase > the RLIMIT_MEMLOCK size. > > Signed-off-by: Eel

[PATCH bpf-next] libbpf: fix probe code to return EPERM if encountered

2020-04-30 Thread Eelco Chaudron
When the probe code was failing for any reason ENOTSUP was returned, even if this was due to no having enough lock space. This patch fixes this by returning EPERM to the user application, so it can respond and increase the RLIMIT_MEMLOCK size. Signed-off-by: Eelco Chaudron --- tools/lib/bpf/libb