Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4564526ybc; Tue, 26 Nov 2019 10:54:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxen4lxt7DUho6LvMLuBAZ563JX3T7R7L4+LfilbOiOKTDH+WxMFm392WoDS+CDN2LUVTbV X-Received: by 2002:a05:6402:28d:: with SMTP id l13mr27520802edv.286.1574794462241; Tue, 26 Nov 2019 10:54:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574794462; cv=none; d=google.com; s=arc-20160816; b=cZOenCrqMpGgkEX8ayxA9tP0tb7ONQdxHuFXYvR8NygSmYOHIaicKpWjaYkBNDznLp NgDaiakgNz6WEAT69EGJxvxKFpSJ5le40qczNG8NB+Vo8H1zm0mTLw5JQDhf4NRPZ1/s DtpLq3ko/kBq0lEDv6k3nzr704vr8w+ubNm3uQXqcYUug+Go4Rm+XOlDkrQe6iQ0nEy/ 1jBF8GUAyxYtQu38MfBAzNhHHAVUD1ROcKPXrdjJaS+Vdq/RHhWjTiDU/+qFQGdcpYFX EhgSquheb8US1Nmvf0ZrkjERnqcwhz1aMb9NEsOrv3i/5bOC9i6JfAhB66H8n/08WACA PWVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=0r4KWfIOtxgISfApasmXgGWya0QXrhQe0FmvwJZ3LCk=; b=YG7Sg0Gm9qdoJpiOcqXnSe/qSfehy8qDzpKBOBNKxXzUeTKh/N469OWKFYknAek9K1 Q4CCHD+pNS7iGVvxN1LndQynv95VX/dZneIoQT7oA2VmdDfqu9wZKiTegFYwlogavhBT CvY8Ht6cueqzkXC3H8WawamGHwqDN/w7mCcBO6m3bh7925KhwSUkGh+evW813AXu3/Hi u4VCC2jHc/OP2qU0QmSX91uLe4TkJwn46qm9+U7QfgdusSZOjd0Lim1ZMXG6oRQzQ2qI l9/TPKVZkeNPpOk9d6eIUAH6iQ2SW0id7v8s/6oPMx73KpYOSxys2FxFaaCFaCi9HTvc 96mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DbQjbtZ6; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p21si8747259edc.305.2019.11.26.10.53.58; Tue, 26 Nov 2019 10:54:22 -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=@redhat.com header.s=mimecast20190719 header.b=DbQjbtZ6; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726926AbfKZSuu (ORCPT + 99 others); Tue, 26 Nov 2019 13:50:50 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:23794 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfKZSuu (ORCPT ); Tue, 26 Nov 2019 13:50:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574794248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0r4KWfIOtxgISfApasmXgGWya0QXrhQe0FmvwJZ3LCk=; b=DbQjbtZ6dLNlWnrB7grb///Q7m7FnK0AuzaDMFidDT1GA0lGtTp+pq/aQ24OdYRs3vG859 lczNQ/pj0g79+6fkvKIcMGS6Ctk3SAox9h3bzYn3ps0usg/jgv7VyicTL8/9wwomJDsYFu y0WvKrZy8dIm6ydDfjLSISfb5u5Ejgg= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-12-P-npiKjbOyOrWo4xEfxl8A-1; Tue, 26 Nov 2019 13:50:47 -0500 Received: by mail-lf1-f70.google.com with SMTP id y4so2717100lfg.1 for ; Tue, 26 Nov 2019 10:50:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=oJf7PTKEEbEjo8GcSBfvuP8BlJ48R6NcwJ+kR4IpGyQ=; b=BVCzAh8BWhwIV+1E5VEhJsra7gUFhn2Lbrt8sTraiBKkPUIR+3yKnHAlwfvxEjI5k8 SVqsNlI5zt4Fu1KFc+pIZwjl4UXfV6YmLXSS6zA1KKZ2Qbf+dryH3rZd0A5f9GTw7Ybm uIqv51kbOY+LT2xaix16s5dKS206AA6BQTNdISq7Z5bavHIvbVpaiS5fY/U8z8TgTTjL 5PYaase80HQr91GZsTzkxIt1ROcq6DIqoxoW32FKFS4MLeLDV24Cqqd76gd1k3Zabt0w OFUsH8fqWEZKHgOFicq5ixj2Zh2Tw/SGYuZBrQpR/SSwRG5j9Pu+Wg2PO/V5uhWlgB3n Th6A== X-Gm-Message-State: APjAAAV+MLB8ZUUi8Ez+kOsf7OKXRB3MQe4/kem0mb/2cpJ4zTWgtydz 09nqF1QnrPMfBco9GlS4hUuX+SMBOI6LuPhjs/xuUa7ABDlaJJziuebRkRXAJ2g5stAMeiXyiES rLwVaA4Z6aCxfKU+VGsvLiR8A X-Received: by 2002:a2e:a0ce:: with SMTP id f14mr28710582ljm.241.1574794246177; Tue, 26 Nov 2019 10:50:46 -0800 (PST) X-Received: by 2002:a2e:a0ce:: with SMTP id f14mr28710563ljm.241.1574794245996; Tue, 26 Nov 2019 10:50:45 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id d24sm5904329ljg.73.2019.11.26.10.50.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 10:50:45 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 2B69C1818C0; Tue, 26 Nov 2019 19:50:44 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Arnaldo Carvalho de Melo Cc: Arnaldo Carvalho de Melo , Andrii Nakryiko , Adrian Hunter , Alexei Starovoitov , Daniel Borkmann , Jiri Olsa , Martin KaFai Lau , Namhyung Kim , bpf@vger.kernel.org, netdev@vger.kernel.org, linux-perf-users@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH] libbpf: Fix up generation of bpf_helper_defs.h In-Reply-To: <20191126183451.GC29071@kernel.org> References: <20191126151045.GB19483@kernel.org> <20191126154836.GC19483@kernel.org> <87imn6y4n9.fsf@toke.dk> <20191126183451.GC29071@kernel.org> X-Clacks-Overhead: GNU Terry Pratchett Date: Tue, 26 Nov 2019 19:50:44 +0100 Message-ID: <87d0dexyij.fsf@toke.dk> MIME-Version: 1.0 X-MC-Unique: P-npiKjbOyOrWo4xEfxl8A-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnaldo Carvalho de Melo writes: > Em Tue, Nov 26, 2019 at 05:38:18PM +0100, Toke H=C3=B8iland-J=C3=B8rgense= n escreveu: >> Arnaldo Carvalho de Melo writes: >>=20 >> > Em Tue, Nov 26, 2019 at 12:10:45PM -0300, Arnaldo Carvalho de Melo esc= reveu: >> >> Hi guys, >> >>=20 >> >> While merging perf/core with mainline I found the problem below fo= r >> >> which I'm adding this patch to my perf/core branch, that soon will go >> >> Ingo's way, etc. Please let me know if you think this should be handl= ed >> >> some other way, >> > >> > This is still not enough, fails building in a container where all we >> > have is the tarball contents, will try to fix later. >>=20 >> Wouldn't the right thing to do not be to just run the script, and then >> put the generated bpf_helper_defs.h into the tarball? > > I would rather continue just running tar and have the build process > in-tree or outside be the same. Hmm, right. Well that Python script basically just parses include/uapi/linux/bpf.h; and it can be given the path of that file with the --filename argument. So as long as that file is present, it should be possible to make it work, I guess? However, isn't the point of the tarball to make a "stand-alone" source distribution? I'd argue that it makes more sense to just include the generated header, then: The point of the Python script is specifically to extract the latest version of the helper definitions from the kernel source tree. And if you're "freezing" a version into a tarball, doesn't it make more sense to also freeze the list of BPF helpers? -Toke