summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorQuentin Monnet <quentin.monnet@netronome.com>2017-10-23 18:24:08 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-24 02:25:08 +0200
commit743cc665d5f62d2c75eceb59c461e653ad6ea58c (patch)
tree1977c8d47d0674d8d1601bdc4a0252a3ab0a4936 /scripts
parenttools: bpftool: introduce --json and --pretty options (diff)
downloadlinux-743cc665d5f62d2c75eceb59c461e653ad6ea58c.tar.xz
linux-743cc665d5f62d2c75eceb59c461e653ad6ea58c.zip
tools: bpftool: add JSON output for `bpftool prog show *` command
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.monnet@netronome.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions