Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp951400ybl; Wed, 4 Dec 2019 13:55:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzGE8K2L+E1mQo+jp4qL0VWAw4fzHUO0DG1JG22AOk7RovB3RI0rJldAIDL5cL04e390ENU X-Received: by 2002:a05:6830:2361:: with SMTP id r1mr4130666oth.88.1575496513895; Wed, 04 Dec 2019 13:55:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575496513; cv=none; d=google.com; s=arc-20160816; b=lp6J8ruKQDS+0Up0AthfMurFajlq4Cq1gk6kdh2hqQV+6NnybG/QGrAG/p0f9/AD8R Gde/kf1PCI0r1tt8V+b+eZmaQHstDriUQ/n1iifnerzib1g52OiR17lhikEDMHHRWQnW o08CTC76+IvF73QRGOaKnHDErQVrH+nx4EBhVMmSECL1mhum9fSfdHmS1EJRcm1JMkW/ Botx/opIy9mtH+geYoShP2S33pEN0vML9lwlPWCOTyytygALepX86DD3Xe9CmDUbbIlm J4DBgBOOATKU0nL4dlr1kBkKcD2bkT7ffgS3+rN+rHX4i54zbEY6Dfj0bz8aFJEtkrQO oauw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=VnhsCb+n6LgjC+6907Tb3B2Vl6EZOomyJ8tnp+TG/qc=; b=P79WMY91v5/cFEKpy9H2KIVQKxoqmDe22dbtoE0Sq6NxTGgCN2V13rOIYS8hq8W9uO a9PDuJEP7mVbD5bnCJc3I3QXYtBQkxaJqu928soIhbQ44ktsmtEs0b/M+w4E7ap/FNDw uNYGWDGEvWEfVFYaTc17HLq2s4+Kz13sTVqqn3RE12ML2heDESRmZC0Nkmgtq6md3MoE Gm56ZcC9dJsx4FIJp67OQjT62EKFWP0CK2ZY0l+7u6O68/V0scPT6Hcv0J+umPGjKqdv 3v7S06OmEqLGMsbnwQzEcBt0SgKNya/buYaKH8OAEXFYQxloGj0c6iJzYNi3AMfGGnDB EmmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=sNHngkNW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si4033150oto.293.2019.12.04.13.54.58; Wed, 04 Dec 2019 13:55:13 -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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=sNHngkNW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728121AbfLDVya (ORCPT + 99 others); Wed, 4 Dec 2019 16:54:30 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:45239 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728031AbfLDVya (ORCPT ); Wed, 4 Dec 2019 16:54:30 -0500 Received: by mail-lf1-f66.google.com with SMTP id 203so745088lfa.12 for ; Wed, 04 Dec 2019 13:54:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=VnhsCb+n6LgjC+6907Tb3B2Vl6EZOomyJ8tnp+TG/qc=; b=sNHngkNWV9ev/PowIGAz1Y8jFs9+YDnaFQVf/lco03gsiAcIQu1SbZnuJ3nQdVH7NO dqB3KDHH54WY/F8yOmZq7+XwbP3We2KsJhXSussbQI7WEkf2pJK9Dfv4VskpP8DP0xi9 RzokWdmqDSdtmSDaKdUMDRrvVxUrRdXp0gDizkbeHWwtxewzYwtw6aE5w/5hDpcO20SB 74FHt6IyhRWsBnQU/vFF7rWwOcznpjo77kfAOnzsGWoZ37J6sd+cfmNms7yTG4rlocFD N1REEnbp/vd+gBJEzbLLWJqAMdZTJZ+uw1Sg2M976u4gSv6gz4dbBj3zq1DgrdBZ4xt+ T2eA== 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:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=VnhsCb+n6LgjC+6907Tb3B2Vl6EZOomyJ8tnp+TG/qc=; b=klQUY1fMHxkiiiPaePEiDtcyu+9BVGOm2KxaON92pZuNUP+vKM9W5dHyLgrWPqkwXO KSzdNbizEHlPt/6ryE1zgOdA4vR3O3jxauUiQARpABhV0b5g5DwtyTcoD3cpJ3uKOkML 52NSBG/TddY1ljY70KR81tKXQSvhHk5BbCBWuv+/Z026e8tGi+ZfrEreNtzwU3PFCoyT 4Ta+WpmSjj6qzeauZQ8hbGGcpC5aJfopp4xnxxR7hifYwn1Caut9ZJt/IUdd1aXHjqTc Dh+A/xyzJ2QbRzk3OpHHqHfPbL8hLDoRUXZHVe1MRswcSeBMFvN+5KcUbhDxRoHlJ++Y gjUQ== X-Gm-Message-State: APjAAAVlHc9TgJVjqQh+4nTmYPm4Er62R5DlIzHNRdAdj6VXx/VnS5wz 39zStUXLLuWTpT39FPs+k19A/g== X-Received: by 2002:a19:c382:: with SMTP id t124mr3210526lff.124.1575496468486; Wed, 04 Dec 2019 13:54:28 -0800 (PST) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id e20sm3841379ljk.44.2019.12.04.13.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2019 13:54:28 -0800 (PST) Date: Wed, 4 Dec 2019 13:54:05 -0800 From: Jakub Kicinski To: Andrii Nakryiko Cc: Alexei Starovoitov , Toke =?UTF-8?B?SMO4?= =?UTF-8?B?aWxhbmQtSsO4cmdlbnNlbg==?= , 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: <20191204135405.3ffb9ad6@cakuba.netronome.com> In-Reply-To: References: <20191202131847.30837-1-jolsa@kernel.org> <87wobepgy0.fsf@toke.dk> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.