From: David S. Miller Date: Tue, 24 Oct 2017 00:25:10 +0000 (+0100) Subject: Merge branch 'bpftool-JSON' X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a5dd4982879b29c7cb8fa1ba2bca9e1eb8c14dc2;p=openwrt%2Fstaging%2Fblogic.git Merge branch 'bpftool-JSON' Jakub Kicinski says: ==================== tools: bpftool: Add JSON output to bpftool Quentin says: This series introduces support for JSON output to all bpftool commands. It adds option parsing, and several options are created: * -j, --json Switch to JSON output. * -p, --pretty Switch to JSON and print it in a human-friendly fashion. * -h, --help Print generic help message. * -V, --version Print version number. This code uses a "json_writer", which is a copy of the one written by Stephen Hemminger in iproute2. --- I don't know if there is an easy way to share the code for json_write without copying the file, so I am very open to suggestions on this matter. ==================== Acked-by: Alexei Starovoitov Signed-off-by: David S. Miller --- a5dd4982879b29c7cb8fa1ba2bca9e1eb8c14dc2