Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8517443ybl; Thu, 16 Jan 2020 18:36:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzNN86QcLwj72bxWt6KYqqOh/Taid70rWPdrIszO14ARODMqw57Mr5PiY5LBK5qsc/yDVrH X-Received: by 2002:aca:ef82:: with SMTP id n124mr1880738oih.88.1579228568357; Thu, 16 Jan 2020 18:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579228568; cv=none; d=google.com; s=arc-20160816; b=qFfpKirC60OhpZjFlbf2/5/xJuYpWjs3oBZOe42BToeiZmpYCwsC72bkskSfMOpiKt m76ZLm5GIhgmT9iMMLFQF73+1rZRbTrTxudC8E0j8ZrVKC3uZCXfiOJolF8ABzcLJLjX kCz9AMCfQez1ycsp+MWGYSfsx58MVYv6fQkujiZbza1HM2/ZBg0zcxGv45jhVuvd2C7P /8/38lHlbY91uodq9oPUcLupjdxi2Svw4F/W2HeyXoXqM4MqwomQWBV6+ZxEWd2eWWI8 00ONLANmX7hccu5t3IqIT+F45+pimMboG26zW1q72NRYSNCAvxQHJzaqt9ZY41tAln24 EUEQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=uYKEJj/GMP8sSDQFNnAjGhqY9XFCpZEuY6M+a4dSQeU=; b=R0T4XZrVTdUGCzAEnxyT0tHrNlYCPgXuvtso41iF70oWExKl4uI+QivgYcPA6yWGI1 fRJyrJnF0gUI6hGNSxwIsjMnkyJ0TiWpy+HhcMDsjO8n6O/sJKy5vNzejthXtBEBx5N+ kjM/FW/WsMkFYusDLgoREP00zKg3x6TdiLNVtT97aZMGVtbg1AA2n8prEK0IiRPUaGSi sXvQhxb2GnJpqjKIzdWsZ8k/CQmWDakxya9GjUtmz/dhSi5CIecOz57kTVlxh7g0jpSi ehQJBnNOWWtFRPMb1Am4OSBDxrnfNmsJn0J21vL6LTW0eqlFeNnaK4mbT8vCmdLFoIPb zqwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cJQqdoXQ; 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 i6si13581591oth.182.2020.01.16.18.35.56; Thu, 16 Jan 2020 18:36:08 -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=cJQqdoXQ; 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 S1733175AbgAPV4Q (ORCPT + 99 others); Thu, 16 Jan 2020 16:56:16 -0500 Received: from mail-qv1-f65.google.com ([209.85.219.65]:46697 "EHLO mail-qv1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729153AbgAPV4P (ORCPT ); Thu, 16 Jan 2020 16:56:15 -0500 Received: by mail-qv1-f65.google.com with SMTP id u1so9818497qvk.13; Thu, 16 Jan 2020 13:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=uYKEJj/GMP8sSDQFNnAjGhqY9XFCpZEuY6M+a4dSQeU=; b=cJQqdoXQ0CnuvxdB8UKCrMhFl3pfRQmYy0E92RMM7YS3wWK2bpd1cVGG91pnVQXD6D rVVDFwxqb0Bjzruz80mumk7k7PS+s0ClROc1+BN8zTeA5pWi+P+IHdOmLprmEwX7yJAW dqMeWRZ5J5c98Fg6EpqQuCllyNOrZ5bJmWsj6a/IVjGkaQUl14Fe1YIqJ2owcDK2AAo+ NAb8l0yhDKmxNbogqSxC9iGP0ExKSRkgv8RGfpbY7V7AEJxEAE0FYhRZbS8mKBW4ZrgV /mKkM8/aWPkiRjp0tHyin5jY8DtO2rosRPOk82GMb/F70zFzicESv+/TzeAw6SkbPDEA y/pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=uYKEJj/GMP8sSDQFNnAjGhqY9XFCpZEuY6M+a4dSQeU=; b=rY0zitNH7C93O9XTk5wzjKhEB1/Jr+Ft0ZBUENM2v1zMpZI5odnlWlfwsJT4taGwI2 XRBfyudTOcovcMbRDAKMIdAn8Lp6Ve4FgJBMxZPeFrzHPVh+KvvmU3O4AGQkvPEx886t uEryrjIVphyzReiP9hA0gUtVXbcc4PFI9EaGssa/wR35G1CdFhN6bKnOMsriaJYFwSIG i1gR9TkxtfAh0Oe3SYusdSPMvzOdLYsD1rd91UmjC/PCF/vwTD4r1DF0ZLKymuY6rKGu vofBtwQta0/amI2+tE6gqgwnMZtcFNtDm8gOe3WJSR1TzbxEZxAechSl5pzz04h152Sd +kHg== X-Gm-Message-State: APjAAAWmyajr2ynBx4VB9Q00D7bDNMjIvIrUDfjrdyrG4QpE660+5qjx Pl/JhXENcq8Zwm41inL3uwjZqwytqJs4gc9p5fY= X-Received: by 2002:ad4:54d3:: with SMTP id j19mr4651801qvx.247.1579211774124; Thu, 16 Jan 2020 13:56:14 -0800 (PST) MIME-Version: 1.0 References: <157918093154.1357254.7616059374996162336.stgit@toke.dk> <157918093613.1357254.10230277763921623892.stgit@toke.dk> In-Reply-To: <157918093613.1357254.10230277763921623892.stgit@toke.dk> From: Andrii Nakryiko Date: Thu, 16 Jan 2020 13:56:03 -0800 Message-ID: Subject: Re: [PATCH bpf-next v3 04/11] tools/runqslower: Use consistent include paths for libbpf To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= 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 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 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 exporte= d > on 'make install' of the library) use bracketed includes instead of quote= d. > > To not break the build, keep the old include path until everything has be= en > changed to the new one; a subsequent patch will remove that. > > Fixes: 6910d7d3867a ("selftests/bpf: Ensure bpf_helper_defs.h are taken f= rom 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/Makefil= e > 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. Acked-by: Andrii Nakryiko > LIBBPF_SRC :=3D $(abspath ../../lib/bpf) > CFLAGS :=3D -g -Wall > [...]