On 12/05/2018 11:28 AM, Quentin Monnet wrote: > BPF programs can use the bpf_trace_printk() helper to print debug > information into the trace pipe. Add a subcommand > "bpftool prog tracelog" to simply dump this pipe to the console. > > This is for a good part copied from iproute2, where the feature is > available with "tc exec bpf dbg". Changes include dumping pipe content > to stdout instead of stderr and adding JSON support (content is dumped > as an array of strings, one per line read from the pipe). This version > is dual-licensed, with Daniel's permission. > > Cc: Daniel Borkmann <[email protected]> > Suggested-by: Daniel Borkmann <[email protected]> > Signed-off-by: Quentin Monnet <[email protected]> > Reviewed-by: Jakub Kicinski <[email protected]>
Looks good, applied, thanks!
