Re: [PATCH bpf-next 4/9] libbpf: add libbpf_swap_print to get previous print func

2019-07-27 Thread Andrii Nakryiko
On Fri, Jul 26, 2019 at 5:30 PM Alexei Starovoitov wrote: > > On Fri, Jul 26, 2019 at 02:47:28PM -0700, Andrii Nakryiko wrote: > > On Fri, Jul 26, 2019 at 2:28 PM Stanislav Fomichev wrote: > > > > > > On 07/26, Andrii Nakryiko wrote: > > > > libbpf_swap_print allows to restore previously set prin

Re: [PATCH bpf-next 4/9] libbpf: add libbpf_swap_print to get previous print func

2019-07-26 Thread Alexei Starovoitov
On Fri, Jul 26, 2019 at 02:47:28PM -0700, Andrii Nakryiko wrote: > On Fri, Jul 26, 2019 at 2:28 PM Stanislav Fomichev wrote: > > > > On 07/26, Andrii Nakryiko wrote: > > > libbpf_swap_print allows to restore previously set print function. > > > This is useful when running many independent test wit

Re: [PATCH bpf-next 4/9] libbpf: add libbpf_swap_print to get previous print func

2019-07-26 Thread Andrii Nakryiko
On Fri, Jul 26, 2019 at 2:28 PM Stanislav Fomichev wrote: > > On 07/26, Andrii Nakryiko wrote: > > libbpf_swap_print allows to restore previously set print function. > > This is useful when running many independent test with one default print > > function, but overriding log verbosity for particul

Re: [PATCH bpf-next 4/9] libbpf: add libbpf_swap_print to get previous print func

2019-07-26 Thread Stanislav Fomichev
On 07/26, Andrii Nakryiko wrote: > libbpf_swap_print allows to restore previously set print function. > This is useful when running many independent test with one default print > function, but overriding log verbosity for particular subset of tests. Can we change the return type of libbpf_set_print

[PATCH bpf-next 4/9] libbpf: add libbpf_swap_print to get previous print func

2019-07-26 Thread Andrii Nakryiko
libbpf_swap_print allows to restore previously set print function. This is useful when running many independent test with one default print function, but overriding log verbosity for particular subset of tests. Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/libbpf.c | 8 tools/lib/b