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

2019-02-07 Thread Alexei Starovoitov
On Thu, Feb 07, 2019 at 09:34:51AM -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 v3] tools/bpf: add log_level to bpf_load_program_attr

2019-02-07 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.