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 map { show | dump | lookup | getnext }` commands. Remaining
commands produce no output.

Some functions have been spit into plain-output and JSON versions in
order to remain readable.

Outputs for sample maps 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