Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6629860ybl; Wed, 15 Jan 2020 07:43:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzPxsDVgJ9qtNbr3tECJh6PYzA2yBraCI4PC51G9fXNUYinh94Die7Y1jeWdZqKthn9xQHa X-Received: by 2002:a05:6830:155a:: with SMTP id l26mr3191591otp.339.1579103021662; Wed, 15 Jan 2020 07:43:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579103021; cv=none; d=google.com; s=arc-20160816; b=DNZXw2kZim05qPvgqzh/83FxYTBkceYOlJxJv/sKRaRwXDf3jzjRudAhQ7r2dUFjd+ q+A9hAPh3/unkG5UkRTo5WrfhHWjOgGG+e98aeKDOF6dlls2EJafMrQ8mxkeCeUhCGw1 OX92FYbo7/LSrVS2FMAIvA2sGgl/HzJ2/bldvQvvQExPHgvJurhC2DcdrgyBfetj7VMi H+GOEnhZ5pqRV6ToaP2qzKAD2hZimdI0wdEx3NV32SqG0rkarls6QvxE81qLHGQB61j9 3c/ghV93FaJE97QOmAIODUZ12CM+4ofTsBraEreX6AaNqwfOQAa3GAbLNFMrT7A3CK8U n9qA== 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=3l69K3PDMlJemoFXpDZpBSROJVwgjnc3IAfTJYLJE1A=; b=LLFnMZiJCKOZoPlC7I13Z1qYJxYPCQTfgnfRsDthWXIsfIsmW0xbMHD3qwKxssrRET xruVH7LxtO374eAqXwl6FOnM/VFFk/6iVdR4MhO1ErsgUTFC7f9xzD2HYWwxRzbiML1y 0yAcA7hiO3flfQ/Vulp5D6UFhQHP17R68EPJy1WoW9/Tly0V7zUD3ceqAXUcsWugbXed uLC+pF2zebrwi5Yv2K+tZF9Y5XVhiRXeKeBXzbuT4e2SmrmnMRLJr5u1NV81q8035aC/ 31JSvoO5J2Rhd65MhBZM5q1BJ3wO2aQCn1wF8Gjh9aCQ26MwtwfCOpY03TGHvhL7fcK7 o3TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B2m0lsnG; 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 l16si10592056otj.59.2020.01.15.07.43.29; Wed, 15 Jan 2020 07:43:41 -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=B2m0lsnG; 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 S1729033AbgAOPlW (ORCPT + 99 others); Wed, 15 Jan 2020 10:41:22 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:43405 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726566AbgAOPlT (ORCPT ); Wed, 15 Jan 2020 10:41:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579102878; 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=3l69K3PDMlJemoFXpDZpBSROJVwgjnc3IAfTJYLJE1A=; b=B2m0lsnGUNo5ArHnmDUISwbD55qbMy8TzhNN0v5BspXXCVOhspRne2JEk/5YDABsnA579/ wrHFwbL0P9lhtSWsVnZ3QlrM0Uik6fh5cT4l3LUO9+UhuXdkU0rOvJBR4olbWyn3n+5VgD dGRACogrLErhOg+PQrXOMa7IIc8cvVM= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-232-eKGJJ5gSNZ-hWf8JPkTAjQ-1; Wed, 15 Jan 2020 10:41:15 -0500 X-MC-Unique: eKGJJ5gSNZ-hWf8JPkTAjQ-1 Received: by mail-lj1-f198.google.com with SMTP id t11so4260898ljo.13 for ; Wed, 15 Jan 2020 07:41:15 -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=3l69K3PDMlJemoFXpDZpBSROJVwgjnc3IAfTJYLJE1A=; b=WxEIXlJvvvPGt082X+bLKg1s362XVDLt38GWKi0Bz71TZgW1oysizxA+bIdoXmigGr zZVf3p6eWDsdvRSRZUkgLfST87OFYee+ZyNeElMGIwGJsWlv0payMh0KLAuO45GrBB0W GYpPtebiuh3kTquy9sPBhp+gLl3DZzlCSgqEwggA/nbhy+2E1Vkotj9uD9TFYfgN1qNd 59ZR0CfJVT0TINLQYj4QTqrEosEo+6SLGGkijNbHbyWrVwR+RKcL8pVPQrQAmW33nHrY 82lIQQfKbtSD/0hCDIpmztQHcynfSJ9pqsblPxkB4zumfHu28xaZzKqG6/qqqFjH72+Q xcTw== X-Gm-Message-State: APjAAAWwdjmpj622OvlHFOUjA7RhjiHfQWC/eM6agleoGrWFkPrqC4sM hbE493Y62kxFqA9DrSqPKPQ2RhBhc5ueB3+DDjfldi7jB9pBTkUcKVeX5l/CA/89eHxLYepYFfy rWQxu/ybW//cfqj8n20DgNd7S X-Received: by 2002:a19:5e0a:: with SMTP id s10mr5018196lfb.165.1579102874487; Wed, 15 Jan 2020 07:41:14 -0800 (PST) X-Received: by 2002:a19:5e0a:: with SMTP id s10mr5018171lfb.165.1579102874260; Wed, 15 Jan 2020 07:41:14 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id s22sm9557271ljm.41.2020.01.15.07.41.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 07:41:13 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id DB6C51804D6; Wed, 15 Jan 2020 16:41:12 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Jesper Dangaard Brouer Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Doug Ledford , Jason Gunthorpe , "David S. Miller" , Jakub Kicinski , John Fastabend , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Shuah Khan , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kselftest@vger.kernel.org, clang-built-linux@googlegroups.com, brouer@redhat.com Subject: Re: [PATCH bpf-next v2 07/10] samples/bpf: Use consistent include paths for libbpf In-Reply-To: <20200115161825.351ebf23@carbon> References: <157909756858.1192265.6657542187065456112.stgit@toke.dk> <157909757639.1192265.16930011370158657444.stgit@toke.dk> <20200115161825.351ebf23@carbon> X-Clacks-Overhead: GNU Terry Pratchett Date: Wed, 15 Jan 2020 16:41:12 +0100 Message-ID: <87y2u8u3qf.fsf@toke.dk> MIME-Version: 1.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 Jesper Dangaard Brouer writes: > On Wed, 15 Jan 2020 15:12:56 +0100 > Toke H=C3=B8iland-J=C3=B8rgensen wrote: > >> From: Toke H=C3=B8iland-J=C3=B8rgensen >>=20 >> Fix all files in samples/bpf to include libbpf header files with the bpf/ >> prefix, to be consistent with external users of the library. Also ensure >> that all includes of exported libbpf header files (those that are export= ed >> on 'make install' of the library) use bracketed includes instead of quot= ed. >>=20 >> To make sure no new files are introduced that doesn't include the bpf/ >> prefix in its include, remove tools/lib/bpf from the include path entire= ly, >> and use tools/lib instead. >>=20 >> Fixes: 6910d7d3867a ("selftests/bpf: Ensure bpf_helper_defs.h are taken = from selftests dir") >> Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen > > I like this change. Maybe the reason so many samples/bpf/ files > still included "libbpf.h" was that once-upon-a-time we had a "eBPF mini > library" in the file samples/bpf/libbpf.h that were included. Yes, I think something similar is the case with bpf_helpers.h - that used to be outside libbpf, and I guess no one bothered to do a cleanup such as this one when it was moved... -Toke