Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8832386ybl; Fri, 17 Jan 2020 01:49:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxD8BRai5Kyxbrt0j/NyonPfb5vLFWCGl7QK0H+evLSdCqyFBKRhSRW9SFxH3Sq1uo43hv3 X-Received: by 2002:a05:6808:9ba:: with SMTP id e26mr2756031oig.81.1579254549893; Fri, 17 Jan 2020 01:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579254549; cv=none; d=google.com; s=arc-20160816; b=akGSvs6IdmN0REHNwbS6lDiYazLSn5+UQgxaP+uYd/Bi92eCHweb2V3L7jWzrGW+ag u8mQPe/t8U2VfB0k3Ka1dsXcfkPwoGLyz6aHQIzWSUxFpjV6tKrCbx+yWBuJpAFKRixs qnM87vEtKDZkO9bqfqSJUanvvizPAFxDnUzBxltbkx9n1I6kj8KJkfs5kmgBukIvn3i5 5l0W9l+oxgb4Pv/Uy9Weks7U3iGQui7DUVkYCpUwSRQU7IqU3LpChTSxNmUqx3JsHGib PNUP23LO18XIgKkfIAIBJdFJ32WpnxzaoRcYpnliiNrRgPKFSgyf5Expmfg9uAdIgtra BFUw== 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=MRdZZz9P8UIoKzsy8bUaagOkve384w9nZaJDimC4aAA=; b=CvJBAIW7eoiO/U63zsf7gJtdNV2yNnXZAD0+y3xlL9faIgw1HzjRg3IwLGNzaZaBe/ RYab7JcL7fdaPKeQrWFQ2VPjAvBX0ajjBOaeSWPvxP1T4ZHuWaQneOsL6hc+eX3XZz2o zdJcX5K1zLQtABo83z7USiqDhyTnzz5TO2AlaLBjBCl3qaf8372NgFhbWh+vOiesjvbU WColXbASYxAT+RJi/8EInH9vIHlE5noMbaKaVFm/FKXx0RxvKI0Kwo+0lSZAArak9yQg f4NH2jzZltodrg18Va0oRLGKWJIZ1qSsJ1SpqUH+pQbDqreM4IzQ/WiXVF/0SfQ7jUxr gJxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RIeXKXao; 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 f60si15034793otf.119.2020.01.17.01.48.57; Fri, 17 Jan 2020 01:49:09 -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=RIeXKXao; 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 S1727005AbgAQJrH (ORCPT + 99 others); Fri, 17 Jan 2020 04:47:07 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:30198 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726755AbgAQJrE (ORCPT ); Fri, 17 Jan 2020 04:47:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579254422; 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=MRdZZz9P8UIoKzsy8bUaagOkve384w9nZaJDimC4aAA=; b=RIeXKXaoWoahHcca3rf5aBFLFtIykftH+O4yYyp4+xclJ4xiBJ3UgM6UDmWRgLX//CtOiE mL6xb9CrTHkTlHJX+nB06PW+j6zuLL9MTmlpxx+kFkamUlDsdTqgiyI9WjPpOKnKbFzP4M Wu8f3xXPw6CtVZ4aCMyGdXXGFISILmE= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-182-gn_os0UBPSSnnxPmoL6fRg-1; Fri, 17 Jan 2020 04:47:01 -0500 X-MC-Unique: gn_os0UBPSSnnxPmoL6fRg-1 Received: by mail-lj1-f199.google.com with SMTP id r14so6013600ljc.18 for ; Fri, 17 Jan 2020 01:47:00 -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=MRdZZz9P8UIoKzsy8bUaagOkve384w9nZaJDimC4aAA=; b=K/G1CacmTRmS8pbT5plAhONBK0I3Q3EGPQOvvcE2Q34hkEt3h3aEtMQEow3umCyxhc OMSIlcQ1kqwzHek57gfiI8J6VRx48raDV4eWMS70GXyHb20ogvCdMBYVtF+dUu3s8gYh qg2WZnxgWDHcDCLmB3zXPnPSptgZx+IfolN8Im4YTVrRm/n3792O+wSZgV948ePvk4KM S/unVlclJYZlpAenHwwPY271CGUVpwrIqKZLWA1fp5WMa2HLp+VW5TAPGMhLV1BbVX6J Zdcg7iobC5K/idAoV2s8WNYdgzobEPCwR3O7Gt9NEWPf9fP7UjOfVPArQlBUF0ALQFzK gVvg== X-Gm-Message-State: APjAAAW0gUdkXjh40IEJhJvtMBaBJsu9eDnCsmp8PdFPOrSttxT/nJPu tE++8ZVlFPH7c/79V7wVSfjG7ufFmrZ/Qkm9Oyw0JJlMMTPaprGV0BmwWndmAY+tKAV2pCk2KZk kUI526wJI2yAB+BzN1IWuUcTm X-Received: by 2002:a19:7015:: with SMTP id h21mr4868726lfc.68.1579254419647; Fri, 17 Jan 2020 01:46:59 -0800 (PST) X-Received: by 2002:a19:7015:: with SMTP id h21mr4868705lfc.68.1579254419486; Fri, 17 Jan 2020 01:46:59 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id r15sm12041957ljh.11.2020.01.17.01.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2020 01:46:58 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 3553E1804D6; Fri, 17 Jan 2020 10:46:58 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Andrii Nakryiko Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Doug Ledford , Jason Gunthorpe , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Shuah Khan , Networking , bpf , open list , linux-rdma@vger.kernel.org, "open list\:KERNEL SELFTEST FRAMEWORK" , clang-built-linux@googlegroups.com Subject: Re: [PATCH bpf-next v3 04/11] tools/runqslower: Use consistent include paths for libbpf In-Reply-To: References: <157918093154.1357254.7616059374996162336.stgit@toke.dk> <157918093613.1357254.10230277763921623892.stgit@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 17 Jan 2020 10:46:58 +0100 Message-ID: <87tv4uqust.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 Andrii Nakryiko writes: > On Thu, Jan 16, 2020 at 5:23 AM Toke H=C3=B8iland-J=C3=B8rgensen wrote: >> >> From: Toke H=C3=B8iland-J=C3=B8rgensen >> >> Fix the runqslower tool 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. >> >> To not break the build, keep the old include path until everything has b= een >> changed to the new one; a subsequent patch will remove that. >> >> Fixes: 6910d7d3867a ("selftests/bpf: Ensure bpf_helper_defs.h are taken = from selftests dir") >> Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen >> --- >> tools/bpf/runqslower/Makefile | 5 +++-- >> tools/bpf/runqslower/runqslower.bpf.c | 2 +- >> tools/bpf/runqslower/runqslower.c | 4 ++-- >> 3 files changed, 6 insertions(+), 5 deletions(-) >> >> diff --git a/tools/bpf/runqslower/Makefile b/tools/bpf/runqslower/Makefi= le >> index 89fb7cd30f1a..c0512b830805 100644 >> --- a/tools/bpf/runqslower/Makefile >> +++ b/tools/bpf/runqslower/Makefile >> @@ -5,6 +5,7 @@ LLC :=3D llc >> LLVM_STRIP :=3D llvm-strip >> DEFAULT_BPFTOOL :=3D $(OUTPUT)/sbin/bpftool >> BPFTOOL ?=3D $(DEFAULT_BPFTOOL) >> +LIBBPF_INCLUDE :=3D -I$(abspath ../../lib) -I$(abspath ../../lib/bpf) > > I'd probably put all the -I's into single INCLUDES var and include > that one instead of mixing -I$(OUTPUT) and $(LIBBPF_INCLUDE), but this > works too. Hmm, yeah, not a bad idea, actually. Since it seems I'm respinning anyway, I'll fix that up as well. -Toke