From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin KaFai Lau Subject: Re: [PATCH bpf-next v5 00/10] BTF: BPF Type Format Date: Thu, 7 Jun 2018 12:05:10 -0700 Message-ID: <20180607190510.qtj7gq4wbfewcn4g@kafai-mbp> References: <20180418225606.2771620-1-kafai@fb.com> <20180419194034.GB3254@kernel.org> <20180605212548.lwtaw4svvydo2lhy@kafai-mbp.dhcp.thefacebook.com> <20180607135401.GE30317@kernel.org> <20180607140337.GF30317@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: , Alexei Starovoitov , Daniel Borkmann , To: Arnaldo Carvalho de Melo Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:51226 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932160AbeFGTFn (ORCPT ); Thu, 7 Jun 2018 15:05:43 -0400 Content-Disposition: inline In-Reply-To: <20180607140337.GF30317@kernel.org> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Jun 07, 2018 at 11:03:37AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jun 07, 2018 at 10:54:01AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Tue, Jun 05, 2018 at 02:25:48PM -0700, Martin KaFai Lau escreveu: > > > [ btw, the latest commit (1 commit) should be 94a11b59e592 ]. > > So, the commit log message for the pahole patch is non-existent: > > https://github.com/iamkafai/pahole/commit/94a11b59e5920908085bfc8d24c92f95c8ffceaf > > we should do better in describing what is done and how, I'm staring > with a message you sent to the kernel part: > > -- > This patch introduces BPF Type Format (BTF). > > BTF (BPF Type Format) is the meta data format which describes > the data types of BPF program/map. Hence, it basically focus > on the C programming language which the modern BPF is primary > using. The first use case is to provide a generic pretty print > capability for a BPF map. > -- I will add details in the next github respin/push. > > Now I'm going to do the step-by-step guide on testing the feature just > introduced, and will try to convert from dwarf to BTF and back, compare > the pahole output for types encoded in DWARF and BTF, etc. > > If you have something ressembling this already, please share. The pahole only has the encoder part. I tested with the verbose output from the "pahole -V -J". Loading the btf to the kernel is also tested.