On Tue, Sep 28, 2021 at 04:45:15PM +0200, Matteo Croce wrote: > On Fri, 17 Sep 2021 14:57:12 -0700 > Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > > From: Alexei Starovoitov <ast@xxxxxxxxxx> > > > > Make relo_core.c to be compiled with kernel and with libbpf. > > > > Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxx> > > --- > > I give it a try with a sample co-re program. Thanks for testing! > I don't know how much of them will stay in the final work, but the > debug prints are borked because of the printk trailing \n. ... > - libbpf_print(level, "[%u] %s %s", type_id, btf_kind_str(t), str_is_empty(s) ? "<anon>" : s); > + libbpf_print(level, KERN_CONT "[%u] %s %s", type_id, btf_kind_str(t), str_is_empty(s) ? "<anon>" : s); Right. It's a known limitation of helper approach. Currently I'm refactoring all the prints to go through the verifier log. So all messages will be neat and clean :)