From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: [PATCH bpf-next 2/3] bpf: btf: add btf json print functionality Date: Fri, 22 Jun 2018 14:49:52 -0700 Message-ID: <20180622144952.353d50c0@cakuba.netronome.com> References: <20180620203051.223156973@fb.com> <20180620203703.101156292@fb.com> <20180621145935.41ff8974@cakuba.netronome.com> <20180621225117.dhrkrtmkfbeihbe4@kafai-mbp.dhcp.thefacebook.com> <20180621160719.2cfb4b58@cakuba.netronome.com> <20180621235746.dfq6kdtkogftw3ws@kafai-mbp.dhcp.thefacebook.com> <20180621172523.6cd00ed1@cakuba.netronome.com> <20180622012052.htkvholi674x6i4f@kafai-mbp.dhcp.thefacebook.com> <20180622114032.162b2a76@cakuba.netronome.com> <20180622205535.c6vjhdwt5er4wc32@kafai-mbp.dhcp.thefacebook.com> <20180622142743.2b890d0f@cakuba.netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Okash Khawaja , Daniel Borkmann , "Alexei Starovoitov" , Yonghong Song , Quentin Monnet , "David S. Miller" , , , To: Martin KaFai Lau Return-path: In-Reply-To: <20180622142743.2b890d0f@cakuba.netronome.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Fri, 22 Jun 2018 14:27:43 -0700, Jakub Kicinski wrote: > BTF in JSON is very useful, and will help people who writes simple > orchestration/scripts based on bpftool *a* *lot*. I really appreciate > this addition to bpftool and will start using it myself as soon as it > lands. I'm not sure why the reluctance to slightly change the output > format? Ohh, maybe that's the misunderstanding, you only implemented JSON so you wanted it to be as readable and clean as possible. Hence the hex output and cutting out the old cruft! That perspective makes sense! But I think we should keep JSON for machines (but including BTF formatted values) and let's make the plain text output nice and clean, agreed.