From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [PATCH net-next 07/12] tools: bpftool: add JSON output for `bpftool map *` commands Date: Mon, 23 Oct 2017 22:32:37 +0200 Message-ID: <59EE51E5.7020901@iogearbox.net> References: <20171023162416.32753-1-jakub.kicinski@netronome.com> <20171023162416.32753-8-jakub.kicinski@netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: oss-drivers@netronome.com, alexei.starovoitov@gmail.com, Quentin Monnet To: Jakub Kicinski , netdev@vger.kernel.org Return-path: Received: from www62.your-server.de ([213.133.104.62]:41809 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbdJWUcj (ORCPT ); Mon, 23 Oct 2017 16:32:39 -0400 In-Reply-To: <20171023162416.32753-8-jakub.kicinski@netronome.com> Sender: netdev-owner@vger.kernel.org List-ID: On 10/23/2017 06:24 PM, Jakub Kicinski wrote: > From: Quentin Monnet > > Reuse the json_writer API introduced in an earlier commit to make > bpftool able to generate JSON output on > `bpftool map { show | dump | lookup | getnext }` commands. Remaining > commands produce no output. > > Some functions have been spit into plain-output and JSON versions in > order to remain readable. > > Outputs for sample maps have been successfully tested against a JSON > validator. > > Signed-off-by: Quentin Monnet Acked-by: Daniel Borkmann