Re: [PATCH bpf-next] bpf: trace jit code when enable BPF_JIT_ALWAYS_ON

2021-03-27 Thread Jianlin Lv
On Sat, Mar 27, 2021 at 11:19 PM Alexei Starovoitov wrote: > > On Sat, Mar 27, 2021 at 1:19 AM Jianlin Lv wrote: > > > > > On Fri, Mar 26, 2021 at 5:40 AM Jianlin Lv wrote: > > > > > > > > When CONFIG_BPF_JIT_ALWAYS_ON is enabled, the value of > > > bpf_jit_enable > > > > in /proc/sys is limited

Re: [PATCH bpf-next] bpf: trace jit code when enable BPF_JIT_ALWAYS_ON

2021-03-27 Thread Alexei Starovoitov
On Sat, Mar 27, 2021 at 1:19 AM Jianlin Lv wrote: > > > On Fri, Mar 26, 2021 at 5:40 AM Jianlin Lv wrote: > > > > > > When CONFIG_BPF_JIT_ALWAYS_ON is enabled, the value of > > bpf_jit_enable > > > in /proc/sys is limited to SYSCTL_ONE. This is not convenient for > > > debugging. > > > This patc

RE: [PATCH bpf-next] bpf: trace jit code when enable BPF_JIT_ALWAYS_ON

2021-03-27 Thread Jianlin Lv
ong ; John Fastabend > ; KP Singh ; Alexander > Viro ; Andrey Ignatov ; Dmitry > Vyukov ; Nicolas Dichtel > ; Kees Cook ; > Masahiro Yamada ; Mahesh Bandewar > ; LKML ; Network > Development ; iece...@gmail.com; nd > > Subject: Re: [PATCH bpf-next] bpf: trace jit code when

Re: [PATCH bpf-next] bpf: trace jit code when enable BPF_JIT_ALWAYS_ON

2021-03-26 Thread Alexei Starovoitov
On Fri, Mar 26, 2021 at 5:40 AM Jianlin Lv wrote: > > When CONFIG_BPF_JIT_ALWAYS_ON is enabled, the value of bpf_jit_enable in > /proc/sys is limited to SYSCTL_ONE. This is not convenient for debugging. > This patch modifies the value of extra2 (max) to 2 that support developers > to emit traces o

[PATCH bpf-next] bpf: trace jit code when enable BPF_JIT_ALWAYS_ON

2021-03-26 Thread Jianlin Lv
When CONFIG_BPF_JIT_ALWAYS_ON is enabled, the value of bpf_jit_enable in /proc/sys is limited to SYSCTL_ONE. This is not convenient for debugging. This patch modifies the value of extra2 (max) to 2 that support developers to emit traces on kernel log. Signed-off-by: Jianlin Lv --- net/core/sysct