Re: [PATCH bpf 0/2] tools: bpftool: minor fixes for JSON in batch mode

2018-02-15 Thread Daniel Borkmann
On 02/15/2018 07:42 AM, Jakub Kicinski wrote: > 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

[PATCH bpf 0/2] tools: bpftool: minor fixes for JSON in batch mode

2018-02-14 Thread Jakub Kicinski
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