Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1038575ybl; Wed, 4 Dec 2019 15:40:34 -0800 (PST) X-Google-Smtp-Source: APXvYqybzbKZ54fE98SqZz3kjcVGE1zRMzvCBeB3V/WBcw428qjeqCyKHS6ZpffgZdP9wKN2O3QL X-Received: by 2002:a9d:5902:: with SMTP id t2mr4880587oth.151.1575502833995; Wed, 04 Dec 2019 15:40:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575502833; cv=none; d=google.com; s=arc-20160816; b=WV+VuyaUN+9xt6MZTh6DyMqUedfZLCt2mTTNlp/Mr+QamDKmXjv+XCrbySZK2hGQNz 2mmlyg4ryXBVMBSm0vIvys2oroM/K/4rTZMtoD9Y6qDnQiwhTWl3gyOzhx5qPWtZmS2f R4YSpGS1lKrbGmR/KIw2auFuLkE5HY37+sGJHMX6wOYGuALlVnFybWRtjZYjnpQEmEQp ApoMk0l8qvGTElcQiCLVi0/mMYveiwurBtTW5MGcER0L5puSRGqGzHBJa8pOyObM+ht1 XVBcqt5zJqUJK0qHyo8b5JGdA2wNpiRdmiy46LeJE3kGEr7awWa/tr5xEwwr8hqsIzHa z6fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=T+fmIAcbvPunjOne4lSVzDFj12f4dda2gaEWlkYAhO4=; b=C4DpSgO8tHopHVoPjbHx1qz8pATyi0kBfMkqG/ydI+juuodTCxfPCtou975cQ7b/CF fluWDHB3PwaubRMZJxk+AZcux9FPKsHF5e9SBs7Opd6F+fa5fi9jusGYqcE9DoZgVAiV gF5NQKA/luG3aPpEiN+231fmMzLIvaVxAF2KEcEmij4heUYEQJoRl3ELsB4Q7ga28TWZ EoKuiiQSXupgSepzGf0bjbzLw7I0nqytMKYaSENd0wXD5KGCQ+XLmGJp+nz+CuSRxw08 YKdlzakHC+Gl+xmFLa/6TDV+L+PqlGJ6uHJcV4kVeyS0Cw25Ly0coNtfKiwN9BIA1LMm j7sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QC9uba6k; 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 g25si3780390otk.240.2019.12.04.15.40.21; Wed, 04 Dec 2019 15:40:33 -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=QC9uba6k; 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 S1728383AbfLDXjy (ORCPT + 99 others); Wed, 4 Dec 2019 18:39:54 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34076 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727989AbfLDXjx (ORCPT ); Wed, 4 Dec 2019 18:39:53 -0500 Received: by mail-pg1-f194.google.com with SMTP id r11so650219pgf.1; Wed, 04 Dec 2019 15:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=T+fmIAcbvPunjOne4lSVzDFj12f4dda2gaEWlkYAhO4=; b=QC9uba6k0eil9dabA/dnJu+IfZoCjL9HkwHTeIfZ+PvQfEaylkJZq80YcxGpIVce4D +ZO5pgMqjg+Oiefmbv1wppCCjVejhHdyZyDCh8JfeRXomomdyoHZzx5gnxRf4vOXxU2Z ARnlPk2dCZStJ27MIPhSdwb8Fl1Gf+zSpcPWqX8A16j/jDKkJ4dZY1jJiCeD0EYTUX9Y iFjAN+GCdi0GTJ+EGs1G1NsitP4FGspIHa/ZBpIAc9prEZT37p20N0HUDMo2ApYRGxv8 HQTWCZoXgU68jZ2e9y3t5Yh78Jak00gmDgnb71iBDcyq6ccpCv7Ca5sPx85OfDLrFrAB JYwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=T+fmIAcbvPunjOne4lSVzDFj12f4dda2gaEWlkYAhO4=; b=kRgn+2TQjAKOnR6t+dGuo0mo2mbK3j+bLZu+in9JOev5oyyZNqNr65mWBBtmRBkHz9 PWXo+/YmNuEBlatq5jRwx7BYKktbvB1bWGpqC6odgmBPkFb+7ZWJ/2p+YeCbE8XlqmW4 tQjtF7uvxbLxqSQ2bpZwlEkjL77kETuuaSI5k+tuyP7bPfVfhfvh3VrXPOCes/vqUFAH 7ZJpBjDtQ9ldAq5P83K8fRtX0yaUwGUcnYX3OIIYwep9lGvy7AnZ6CLSp7sF6U2MbGt+ COfZpQAqYjoQPqnWOFCMPr9ZG65DHS9VtCmbqIr2J4JMAazcW3C1bHEYktCW1vxHD6HS xIag== X-Gm-Message-State: APjAAAVRDgHQ8rFwPzLBodfzv3hALoKHrgqWtFjjidH9VZuayCmbiOlz AQxDdzhvBwfBlLKn56b75eU= X-Received: by 2002:a62:e210:: with SMTP id a16mr6209696pfi.123.1575502792921; Wed, 04 Dec 2019 15:39:52 -0800 (PST) Received: from ast-mbp.dhcp.thefacebook.com ([2620:10d:c090:180::f9fe]) by smtp.gmail.com with ESMTPSA id r193sm3923243pfr.100.2019.12.04.15.39.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Dec 2019 15:39:52 -0800 (PST) Date: Wed, 4 Dec 2019 15:39:49 -0800 From: Alexei Starovoitov To: Jakub Kicinski Cc: Andrii Nakryiko , Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Networking , bpf , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Jesper Dangaard Brouer , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Quentin Monnet Subject: Re: [PATCHv4 0/6] perf/bpftool: Allow to link libbpf dynamically Message-ID: <20191204233948.opvlopjkxe5o66lr@ast-mbp.dhcp.thefacebook.com> References: <20191202131847.30837-1-jolsa@kernel.org> <87wobepgy0.fsf@toke.dk> <20191204135405.3ffb9ad6@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191204135405.3ffb9ad6@cakuba.netronome.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 04, 2019 at 01:54:05PM -0800, Jakub Kicinski wrote: > On Wed, 4 Dec 2019 13:16:13 -0800, Andrii Nakryiko wrote: > > I wonder what big advantage having bpftool in libbpf's Github repo > > brings, actually? The reason we need libbpf on github is to allow > > other projects like pahole to be able to use libbpf from submodule. > > There is no such need for bpftool. > > > > I agree about preference to release them in sync, but that could be > > easily done by releasing based on corresponding commits in github's > > libbpf repo and kernel repo. bpftool doesn't have to physically live > > next to libbpf on Github, does it? > > +1 > > > Calling github repo a "mirror" is incorrect. It's not a 1:1 copy of > > files. We have a completely separate Makefile for libbpf, and we have > > a bunch of stuff we had to re-implement to detach libbpf code from > > kernel's non-UAPI headers. Doing this for bpftool as well seems like > > just more maintenance. Keeping github's Makefile in sync with kernel's > > Makefile (for libbpf) is PITA, I'd rather avoid similar pains for > > bpftool without a really good reason. > > Agreed. Having libbpf on GH is definitely useful today, but one can hope > a day will come when distroes will get up to speed on packaging libbpf, > and perhaps we can retire it? Maybe 2, 3 years from now? Putting > bpftool in the same boat is just more baggage. Distros should be packaging libbpf and bpftool from single repo on github. Kernel tree is for packaging kernel.