[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180215064255.9707-1-jakub.kicinski@netronome.com>
Date: Wed, 14 Feb 2018 22:42:53 -0800
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: daniel@...earbox.net, alexei.starovoitov@...il.com
Cc: netdev@...r.kernel.org, oss-drivers@...ronome.com,
Jakub Kicinski <jakub.kicinski@...ronome.com>
Subject: [PATCH bpf 0/2] tools: bpftool: minor fixes for JSON in batch mode
Quentin says:
These are two minor fixes to avoid breaking JSON output in batch mode. The
first one makes bpftool output a "null" JSON object, as expected in batch
mode if nothing else is to be printed, when dumping program instructions
into an output file. The second one replaces a call to "perror()" with
something that does not break JSON when parsing input file for batch mode.
Quentin Monnet (2):
tools: bpftool: preserve JSON for batch mode when dumping insns to
file
tools: bpftool: preserve JSON output on errors on batch file parsing
tools/bpf/bpftool/main.c | 2 +-
tools/bpf/bpftool/prog.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
--
2.15.1
Powered by blists - more mailing lists