diff options
author | Quentin Monnet <quentin.monnet@netronome.com> | 2017-10-23 18:24:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-24 02:25:08 +0200 |
commit | 743cc665d5f62d2c75eceb59c461e653ad6ea58c (patch) | |
tree | 1977c8d47d0674d8d1601bdc4a0252a3ab0a4936 /include/net/firewire.h | |
parent | tools: bpftool: introduce --json and --pretty options (diff) | |
download | linux-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 'include/net/firewire.h')
0 files changed, 0 insertions, 0 deletions