On 10/23/2017 06:24 PM, Jakub Kicinski wrote:
From: Quentin Monnet <quentin.mon...@netronome.com>

Reuse the json_writer API introduced in an earlier commit to make
bpftool able to generate JSON output on `bpftool prog show *` commands.

For readability, the code from show_prog() has been split into two
functions, one for plain output, one for JSON.

Outputs from sample programs have been successfully tested against a
JSON validator.

Signed-off-by: Quentin Monnet <quentin.mon...@netronome.com>

Acked-by: Daniel Borkmann <dan...@iogearbox.net>

Reply via email to