diff options
| author | Quentin Monnet <[email protected]> | 2017-10-23 09:24:11 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-24 01:25:09 +0100 |
| commit | 831a0aafe5c39405150d47994fe0a5bcd78fbadc (patch) | |
| tree | 119298892205681400adec0e37e32d94eab2cb71 /include/uapi/linux/errqueue.h | |
| parent | f05e2c32f715985f54265b1e237b5cce1b576c71 (diff) | |
tools: bpftool: add JSON output for `bpftool map *` commands
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]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions