Re: [PATCH bpf-next v2] tools/bpf: add log_level to bpf_load_program_attr

2019-02-06 Thread Yonghong Song
On 2/6/19 10:53 PM, Alexei Starovoitov wrote: > On Wed, Feb 06, 2019 at 10:15:50PM -0800, Yonghong Song wrote: >> The kernel verifier has three levels of logs: >> 0: no logs >> 1: logs mostly useful >>> 1: verbose >> >> Current libbpf API functions bpf_load_program_xattr() and >> bp

Re: [PATCH bpf-next v2] tools/bpf: add log_level to bpf_load_program_attr

2019-02-06 Thread Alexei Starovoitov
On Wed, Feb 06, 2019 at 10:15:50PM -0800, Yonghong Song wrote: > The kernel verifier has three levels of logs: > 0: no logs > 1: logs mostly useful > > 1: verbose > > Current libbpf API functions bpf_load_program_xattr() and > bpf_load_program() cannot specify log_level. > The bcc, howev

[PATCH bpf-next v2] tools/bpf: add log_level to bpf_load_program_attr

2019-02-06 Thread Yonghong Song
The kernel verifier has three levels of logs: 0: no logs 1: logs mostly useful > 1: verbose Current libbpf API functions bpf_load_program_xattr() and bpf_load_program() cannot specify log_level. The bcc, however, provides an interface for user to specify log_level 2 for verbose output.