Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9536729ybl; Fri, 17 Jan 2020 13:54:06 -0800 (PST) X-Google-Smtp-Source: APXvYqyqwe19tbpyHJRkVa9PuLftxNH9wDYde1u+v5PwfGLj3BIMcqiZBDBsAMBMSrJ3CWOQn0z6 X-Received: by 2002:aca:d6c8:: with SMTP id n191mr5211951oig.103.1579298045821; Fri, 17 Jan 2020 13:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579298045; cv=none; d=google.com; s=arc-20160816; b=rvNIxYk5OLO/jd6xXUBNPZ5idKvGqWcgI5Yta27nADzPZpGIHKVeDYghbL4rD94LRp dahigIQ236Ql0PXKLFV4I+xI3Xw6Jmvz+wnecTqGTGL6XSvURQMpemuJHpFN1WmuWrN6 ulrkl1l94FQYHY0ceIjQbvE1u9TjTKPAQ9xs1gMaXDde08wGRWnTH7vOIl0cb2PFAmZh NBXycZ5QuclVeeRbEIgApcGEr4M9Z6s17C+y5/c1rZcia1ZoLKKJ8bJXvK+MdjHQwFbr 83+tqhJdmzC8X6Mol51AGf/po0aR1T9E7IOlhRsSlEF2QKqIXZCnenvSjNgiNaCqbcML qOLw== 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=LXFr+Oe+DVTEU1iGCR5ab4LZThTsrbbCxkzxMkJjD5c=; b=vrCyCiBU1HFlysfwuuONhk3MF/Cft2jZxst+GsPHZQLk/VRXLXq32RbC8EQJzOefl9 L3WiCVIlQWE8nh6q/H9aEoLwk6V73TKQOmaaKOFFtBy9o3dzJo1ajfx5BDHltAZkJHfG qGJCx2kdQcLY8OIMSOSiESauxtDA2MZb4PKHFbQOiJfjXwPgT3XTJaF0ZHwUY0Dpjg79 BvJXuap7HKmWsHG620mFESy8WQ/bjkJ2GTVRJkEGK0hktcPH8CaioSVWTtM4yAEKS9Sb YccIO6ETF5Pw9LM+512i0TWZm3XTCbpLUx5OanoyPGsbui87Vgfign4KnSDnML988izK ae4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SCKFYcXA; 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 u21si15828162otq.137.2020.01.17.13.53.53; Fri, 17 Jan 2020 13:54:05 -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=SCKFYcXA; 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 S1729336AbgAQVwD (ORCPT + 99 others); Fri, 17 Jan 2020 16:52:03 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:34037 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbgAQVwD (ORCPT ); Fri, 17 Jan 2020 16:52:03 -0500 Received: by mail-qt1-f196.google.com with SMTP id 5so22974638qtz.1; Fri, 17 Jan 2020 13:52:02 -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=LXFr+Oe+DVTEU1iGCR5ab4LZThTsrbbCxkzxMkJjD5c=; b=SCKFYcXAx2pYOkg8sBdmA6UuPGSAN4IeyL1Dz/KSEDe5j/IrkXBa5bXmt6hFX6UhDM 2YYiUQFJw+8eXd/z3QSihMEyOYslWrk5vlX3iUsqa28FTs+P7NiNAIdO8+kQMfhKOa5H G7pz4MTfa/UlimYFKtDwhRX73LJsP1FnpKiQhV+JY3QcgfU0G6tLwr57mRjBknDU4y47 msMgfAq7oc+VegMblw7Xw8uk64413y5aq2GWD0MMhStKrj5p3zliEbHRu6HeTHyN57wx o2FQQesMgQvTTsSRJew4/ERaY6H8GFbehj5A6j6jBrRm5YSlchBa5enyuQgApmiUP4/y WIcQ== 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=LXFr+Oe+DVTEU1iGCR5ab4LZThTsrbbCxkzxMkJjD5c=; b=IVE0bbXgttmXNRct/wh81V6UOn9dEQmxsO+4cbkPjdklvcBJOAxXdg0Z2NMoDv/zIi RipZWrXV9uRwr5nszgNLdOab6ICUkEfn6vmDSnBzffkNXlnBtonXCYutw1pQGg7LV57F RV0E9fO5VbEvfvFvtGb4cde1gGPbY05lNdsHxLQAB36ed3rSDhNUVDVuew+qXKPSgmEL PxyfCTtUCjEYLRuFw4EbL1O6btZu89SwlC5Lm968Ep8FER2mIMJUexlB2TyPitUXfw+M Mhd1sUS7DYdk1dEJM5HfVKZfFYvpvCeSDPrhxDAXhF/KHS/0aMdC5Jbhnir8crEEdMc4 kx9g== X-Gm-Message-State: APjAAAVpP+UumZjTsAKAHfNXmm77q7caJ7L13k4Q5leD3DevjikrY+aF U4t+//4Neecmaxoy9fwxxCaKR1G9DjY07JkYnik= X-Received: by 2002:ac8:7b29:: with SMTP id l9mr9364164qtu.141.1579297921555; Fri, 17 Jan 2020 13:52:01 -0800 (PST) MIME-Version: 1.0 References: <157926819690.1555735.10756593211671752826.stgit@toke.dk> <157926820131.1555735.1177228853838027248.stgit@toke.dk> In-Reply-To: <157926820131.1555735.1177228853838027248.stgit@toke.dk> From: Andrii Nakryiko Date: Fri, 17 Jan 2020 13:51:50 -0800 Message-ID: Subject: Re: [PATCH bpf-next v4 04/10] 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 Fri, Jan 17, 2020 at 5:37 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") > Acked-by: Andrii Nakryiko > 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 b62fc9646c39..9f022f7f2593 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) > +INCLUDES :=3D -I$(OUTPUT) -I$(abspath ../../lib) -I$(abspath ../../lib/b= pf) > LIBBPF_SRC :=3D $(abspath ../../lib/bpf) drop LIBBPF_SRC, it's not used anymore > CFLAGS :=3D -g -Wall > > @@ -51,13 +52,13 @@ $(OUTPUT)/%.skel.h: $(OUTPUT)/%.bpf.o | $(BPFTOOL) > > $(OUTPUT)/%.bpf.o: %.bpf.c $(OUTPUT)/libbpf.a | $(OUTPUT) > $(call msg,BPF,$@) > - $(Q)$(CLANG) -g -O2 -target bpf -I$(OUTPUT) -I$(LIBBPF_SRC) = \ > + $(Q)$(CLANG) -g -O2 -target bpf $(INCLUDES) \ please preserve formatting and alignment conventions of a file > -c $(filter %.c,$^) -o $@ && = \ > $(LLVM_STRIP) -g $@ > > $(OUTPUT)/%.o: %.c | $(OUTPUT) > $(call msg,CC,$@) > - $(Q)$(CC) $(CFLAGS) -I$(LIBBPF_SRC) -I$(OUTPUT) -c $(filter %.c,$= ^) -o $@ > + $(Q)$(CC) $(CFLAGS) $(INCLUDES) -c $(filter %.c,$^) -o $@ > > $(OUTPUT): [...]