linux/tools/bpf/bpftool
Quentin Monnet 9be6d411b0 tools: bpftool: preserve JSON output on errors on batch file parsing
Before this patch, perror() function is used in some cases when bpftool
fails to parse its input file in batch mode. This function does not
integrate well with the rest of the output when JSON is used, so we
replace it by something that is compliant.

Most calls to perror() had already been replaced in a previous patch,
this one is a leftover.

Fixes: d319c8e101c5 ("tools: bpftool: preserve JSON output on errors on batch file parsing")
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-02-15 10:01:05 +01:00
..
bash-completion tools: bpftool: add bash completion for cgroup commands 2018-02-08 11:59:50 +01:00
Documentation tools: bpftool: add bash completion for cgroup commands 2018-02-08 11:59:50 +01:00
cgroup.c tools: bpftool: remove new lines from errors 2018-01-04 12:28:46 +01:00
common.c tools: bpftool: improve architecture detection by using ifindex 2018-01-18 01:26:15 +01:00
jit_disasm.c tools: bpftool: improve architecture detection by using ifindex 2018-01-18 01:26:15 +01:00
json_writer.c tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
json_writer.h tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
main.c tools: bpftool: preserve JSON output on errors on batch file parsing 2018-02-15 10:01:05 +01:00
main.h tools: bpftool: improve architecture detection by using ifindex 2018-01-18 01:26:15 +01:00
Makefile tools: bpftool: add -DPACKAGE when including bfd.h 2018-01-17 01:15:05 +01:00
map.c bpftool: recognize BPF_MAP_TYPE_CPUMAP maps 2018-01-19 23:16:52 +01:00
prog.c tools: bpftool: preserve JSON for batch mode when dumping insns to file 2018-02-15 10:01:05 +01:00