Re: [PATCH bpf-next v2 RESEND 0/2] Move bpf_printk to bpf_helpers.h

2019-05-24 Thread Alexei Starovoitov
On Thu, May 23, 2019 at 9:52 AM Yonghong Song wrote: > > > > On 5/23/19 5:53 AM, Michal Rostecki wrote: > > This series of patches move the commonly used bpf_printk macro to > > bpf_helpers.h which is already included in all BPF programs which > > defined that macro on their own. > > > > v1->v2: >

Re: [PATCH bpf-next v2 RESEND 0/2] Move bpf_printk to bpf_helpers.h

2019-05-23 Thread Yonghong Song
On 5/23/19 5:53 AM, Michal Rostecki wrote: > This series of patches move the commonly used bpf_printk macro to > bpf_helpers.h which is already included in all BPF programs which > defined that macro on their own. > > v1->v2: > - If HBM_DEBUG is not defined in hbm sample, undefine bpf_printk and

[PATCH bpf-next v2 RESEND 0/2] Move bpf_printk to bpf_helpers.h

2019-05-23 Thread Michal Rostecki
This series of patches move the commonly used bpf_printk macro to bpf_helpers.h which is already included in all BPF programs which defined that macro on their own. v1->v2: - If HBM_DEBUG is not defined in hbm sample, undefine bpf_printk and set an empty macro for it. Michal Rostecki (2): sel