On 10/23/2017 06:24 PM, Jakub Kicinski wrote:
From: Quentin Monnet <[email protected]>

Reuse the json_writer API introduced in an earlier commit to make
bpftool able to generate JSON output on `bpftool prog show *` commands.
A new printing function is created to be passed as an argument to the
disassembler.

Similarly to plain output, opcodes are printed on request.

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

Signed-off-by: Quentin Monnet <[email protected]>

Acked-by: Daniel Borkmann <[email protected]>

Reply via email to