From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Starovoitov Subject: Re: [PATCH] libbpf: Fix up generation of bpf_helper_defs.h Date: Wed, 27 Nov 2019 16:59:15 -0800 Message-ID: References: <87imn6y4n9.fsf@toke.dk> <20191126183451.GC29071@kernel.org> <87d0dexyij.fsf@toke.dk> <20191126190450.GD29071@kernel.org> <20191126221018.GA22719@kernel.org> <20191126221733.GB22719@kernel.org> <20191126231030.GE3145429@mini-arch.hsd1.ca.comcast.net> <20191126155228.0e6ed54c@cakuba.netronome.com> <20191127013901.GE29071@kernel.org> <2993CDB0-8D4D-4A0C-9DB2-8FDD1A0538AB@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <2993CDB0-8D4D-4A0C-9DB2-8FDD1A0538AB@kernel.org> Sender: netdev-owner@vger.kernel.org To: Arnaldo Carvalho de Melo Cc: Jakub Kicinski , Stanislav Fomichev , Andrii Nakryiko , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Andrii Nakryiko , Adrian Hunter , Alexei Starovoitov , Daniel Borkmann , Jiri Olsa , Martin KaFai Lau , Namhyung Kim , bpf , Networking , linux-perf-users@vger.kernel.org, Linux Kernel Mailing List , Quentin Monnet List-Id: linux-perf-users.vger.kernel.org On Wed, Nov 27, 2019 at 4:50 PM Arnaldo Carvalho de Melo wrote: > > Take it as one, I think it's what should have been in the cset it is fixing, that way no breakage would have happened. Ok. I trimmed commit log and applied here: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=1fd450f99272791df8ea8e1b0f5657678e118e90 What about your other fix and my suggestion there? (__u64) cast instead of PRI ? We do this already in two places: libbpf.c: shdr_idx, (__u64)sym->st_value); libbpf.c: (__u64)sym.st_value, GELF_ST_TYPE(sym.st_info),