On 01/24/2017 10:52 AM, Jesper Dangaard Brouer via iovisor-dev wrote:
Hi IOvisor-group,
I'm playing with kernels samples/bpf, and want so advice on debugging
eBPF programs.
First question: I noticed bpf_trace_printk(), but nothing shows up when
I'm using it... what did I miss/forget?
Depends where you look. F.e. tc has 'tc exec bpf dbg' to find the mount
and dump the trace pipe.
Second question: When doing some mistake the eBPF validator does not
like, I get a dump of eBPF asm codes, which I cannot correlate to line
number in the pseudo-C code. Is there some debug option I can enable
to get some more help? (Saw William had some additional ";" output)
Yep, see discussion from netdev:
https://www.spinics.net/lists/netdev/msg406926.html
_______________________________________________
iovisor-dev mailing list
[email protected]
https://lists.iovisor.org/mailman/listinfo/iovisor-dev