Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6191770ybc; Wed, 27 Nov 2019 17:00:47 -0800 (PST) X-Google-Smtp-Source: APXvYqyZrszwTZPD3drckle15CTsghY1LwVmIzvO/twXWnF3aflH5n1kOFqOpTJgAjz0ETAOkY4V X-Received: by 2002:a05:6402:1350:: with SMTP id y16mr8503495edw.176.1574902846955; Wed, 27 Nov 2019 17:00:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574902846; cv=none; d=google.com; s=arc-20160816; b=O5bSotu15MIRsLyn4GEnUfqf84yJAipXE+g/2lTp8Fjd9GMt+DMOTshQXvuhIo15zI HRfMHObDHDYZF70cRdUXM3stABs51FMl2p1oDkjLFaZU1sW/PK09bjKby74RCr6pdMOy N3B+7oifKkbE9sFmAAVjxDc0ct3QY01YjE8x7gzxAxZbf0QeSqWtQchL/Pct46ZIMrfc 4JO3yLSbbu9yhHgBQ5eyjrM6kR0waaWS6Qr/chCQIGXYng26lgSRy6lci6GovbOzw2f8 sAC/KAR+owc6fySCE+gzweBWkwIRQqC6YSmvki1p/8QgzZAHJzjTCZvAtsmbZ0MZ3lBj XV1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GlDsn7TqBs4w48Ao28vIPY+vTJ4FRLpQy82LHAO9FtM=; b=rGYamMY71gQgh7Cthe375Rl/Bj0UKnJorjYTtv3HOMt/b5Ezv7nTcpqIVhAs1WDVbu DEF4r07Om+5i/mR7ZCCTjj/ab/+kiO9wbMTFa7tYMf/H1AcmDTgOCkyldNWFSdwNDCSm eJJxf2bfzOs80YuIf8+3U84YPTqdZJOCSQ6O/yiWpL1fT0LZM3Syu2dqPIXFWzwqZNsC Q7F9Ii/x8jcBR1SuhAO5ngSIQMKOQ2WTPf+pUdKIO6JoXykDSEH3ubxoae7YmvS0fDsO MnsyTcNVvt1firphvOBsv1Bs7J0BBurhF/KIlIhyyR0Ou8khthGiNWdA2iv0Uq8jSVbO Z+Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dct7JSOO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20si11302667edn.178.2019.11.27.17.00.22; Wed, 27 Nov 2019 17:00:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dct7JSOO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727318AbfK1A73 (ORCPT + 99 others); Wed, 27 Nov 2019 19:59:29 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:47033 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726984AbfK1A73 (ORCPT ); Wed, 27 Nov 2019 19:59:29 -0500 Received: by mail-lj1-f196.google.com with SMTP id e9so26497546ljp.13; Wed, 27 Nov 2019 16:59:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GlDsn7TqBs4w48Ao28vIPY+vTJ4FRLpQy82LHAO9FtM=; b=dct7JSOOxj7fmLcV6CatAbFkMkk+UoveZkp97Ar7akOPlhi8ZWJjP/o4CXp431UR+N luuDF+9IQPZooAfD62gbrYgCgQCevKJD9tE0gZ44JMcdYXWEXrGT7wzkva7n+koICphB 5bv2C8OHfCi4xq3Ru4/NPktJc/rNzrZeU8j5SR5e39AciMEWkXHN728967uZm+NFLpWF 0Gch3jGmwIfMcWCWrjr8B3jEWbu2PENANkdrtMV87F4xKFXztqbc1uES+Em/0KkU9cNk 4XIV5uwTpMr2wodZeqXhwzkw1jdu7hBok2fBoFU0g5Rww+7tzz4H5lX3bRdnroAIKDzs vFKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GlDsn7TqBs4w48Ao28vIPY+vTJ4FRLpQy82LHAO9FtM=; b=D6M3Nvv1oD3Kfwyne+z5SHtCJ5FXvyHy4RU8dUSGoYwZLF7R/QXdQrJ3xQvI1OlBVX SJBZBaRtA159rOe7TRFiYet6613nn5uuK0/YvLbunb54QqWb3iM/E7vjWyJFD0t6QL3G w1YeXd/ljDdYb7NShVSz785qAcspJEXOmH5oz1eh/mlkF8adJFnTMgEIWdRXgbKh4odd oAyZtmULMmihzA59/EfOQuD47xpd0rmRoi+5uMjhKOKGnXHmN/ahZLIwd53/vRoY1ZlV glFbi6SVyk1pjQZJUDtgxkPgDoiajZhxr0gruv541chjosjsmpP6NL7K0ubNun1yjm8S vS9w== X-Gm-Message-State: APjAAAWO7JfukhxsQzAmSEI9Y0n4YTmpyWDC57XDP4P8wvyqhpz+fko9 +QmRrbcxJSQ8XuZZMEVyQ7aXhf9phS/4IpADCKU= X-Received: by 2002:a2e:8508:: with SMTP id j8mr32148600lji.136.1574902766702; Wed, 27 Nov 2019 16:59:26 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <2993CDB0-8D4D-4A0C-9DB2-8FDD1A0538AB@kernel.org> From: Alexei Starovoitov Date: Wed, 27 Nov 2019 16:59:15 -0800 Message-ID: Subject: Re: [PATCH] libbpf: Fix up generation of bpf_helper_defs.h 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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),