aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/common.c
diff options
context:
space:
mode:
authorQuentin Monnet <[email protected]>2017-10-23 16:24:07 +0000
committerDavid S. Miller <[email protected]>2017-10-24 00:25:08 +0000
commitd35efba99d9221d9fe1715a23247ad9b703544ec (patch)
tree1b89543dbbbfde0127b06581abd45091c7f93c5e /tools/bpf/bpftool/common.c
parenttools: bpftool: add option parsing to bpftool, --help and --version (diff)
downloadkernel-d35efba99d9221d9fe1715a23247ad9b703544ec.tar.gz
kernel-d35efba99d9221d9fe1715a23247ad9b703544ec.zip
tools: bpftool: introduce --json and --pretty options
These two options can be used to ask for a JSON output (--j or -json), and to make this JSON human-readable (-p or --pretty). A json_writer object is created when JSON is required, and will be used in follow-up commits to produce JSON output. Note that --pretty implies --json. Update for the manual pages and interactive help messages comes in a later patch of the series. Signed-off-by: Quentin Monnet <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions