aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorQuentin Monnet <quentin.monnet@netronome.com>2017-10-23 09:24:09 -0700
committerDavid S. Miller <davem@davemloft.net>2017-10-24 01:25:08 +0100
commit107f041212c1dfd3bf72b01c0d2013e98b6f32c2 (patch)
tree37d4592e19f1de25f2c42a77bd4e8a1cf571eba8 /tools/bpf/bpftool/prog.c
parenttools: bpftool: add JSON output for `bpftool prog show *` command (diff)
downloadlinux-dev-107f041212c1dfd3bf72b01c0d2013e98b6f32c2.tar.xz
linux-dev-107f041212c1dfd3bf72b01c0d2013e98b6f32c2.zip
tools: bpftool: add JSON output for `bpftool prog dump jited *` command
Reuse the json_writer API introduced in an earlier commit to make bpftool able to generate JSON output on `bpftool prog show *` commands. A new printing function is created to be passed as an argument to the disassembler. Similarly to plain output, opcodes are printed on request. 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 '')
0 files changed, 0 insertions, 0 deletions