2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-15 08:44:14 +08:00
linux-next/tools/bpf/bpftool
Quentin Monnet d35efba99d 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 <quentin.monnet@netronome.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-24 01:25:08 +01:00
..
Documentation tools: bpftool: add option parsing to bpftool, --help and --version 2017-10-24 01:25:08 +01:00
common.c tools: bpf: add bpftool 2017-10-04 21:45:06 -07:00
jit_disasm.c tools: bpf: add bpftool 2017-10-04 21:45:06 -07:00
json_writer.c tools: bpftool: copy JSON writer from iproute2 repository 2017-10-24 01:25:08 +01:00
json_writer.h tools: bpftool: copy JSON writer from iproute2 repository 2017-10-24 01:25:08 +01:00
main.c tools: bpftool: introduce --json and --pretty options 2017-10-24 01:25:08 +01:00
main.h tools: bpftool: introduce --json and --pretty options 2017-10-24 01:25:08 +01:00
Makefile tools: bpftool: use the kernel's instruction printer 2017-10-10 12:30:16 -07:00
map.c tools: bpftool: print only one error message on byte parsing failure 2017-10-22 02:11:32 +01:00
prog.c tools: bpftool: show that opcodes or file FILE should be exclusive 2017-10-22 02:11:32 +01:00