Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8118392ybl; Thu, 16 Jan 2020 10:58:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwRxzqaKe3nzUmct3GclF+WBYpwKkKC7Jvgp+PakBAxLiU7B8yvE8AHkHMaTwsVCh56YHeW X-Received: by 2002:aca:d6c4:: with SMTP id n187mr416647oig.29.1579201120529; Thu, 16 Jan 2020 10:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579201120; cv=none; d=google.com; s=arc-20160816; b=EI0w78Wg0qp0BT48apRHRyYXd5AHo5NpTP3e+SMJWdh0J9K+/KxPJvd42WwDfRXf6R 69RgzL7EIlSlkF10i2CtcOCbwlQF7j+UvyS6HWAN/FKTfwwxg9rxBh5UntU3zMNGl7m0 wX7yNRccRNwtyH0aNn/Ere1bAhH52mnCZt/D38ymROOi7coqI9gGYsSq8BCiIhIjRWo/ CHXCpzZaX6ZW61QC3v8Qs2ub/k8Tc8DOUQRxNGIC4Pk2gfb2XO+GMDVlUn4GfUeB7+M8 f6xtkIzXKvK9kKv0NJ8Dw547yiHZJoRVEqQqamK0CRpBjSW2PBzAOt3+CXC/InZdXi6f xsVw== 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=X5psP6nW/Y1xNS1QkA2tl6VWc1qbUvTdajI5ErCGOQg=; b=g2CeyKlAS1UoNJSXkiTuenAa3zgcnxxGNGmlbYOidwOhTJXd+gM+vN7LS9VALXJB+m c8MAzCFy62FmolQDJqzhq+23kh1zL0naqa2ILO1qGd54r3N6Yi3MAyd8GGHGsOpH1h5q /FuVtdpgT3PdhQ0/d+RRZcWO7KdbMO1UOZWBQDb3SJXWCpXfjbDggFh0MKmb1XPaSrNx uUtn8LPOi/GaYRVAghaO/KbflnoHwv0dXan7TrOO+pl3rVDfvhPcBS+pk/9gCOuuuyv4 Ye7K4kF03Bho4K80EaivtbH9Hyx45Wn8Ch9umSlzhUrww51DFEUyUU4yMgOJX/LqlwOs f7qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YZ6F46+0; 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 2si11946495ois.221.2020.01.16.10.58.29; Thu, 16 Jan 2020 10:58:40 -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=YZ6F46+0; 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 S2404442AbgAPS5G (ORCPT + 99 others); Thu, 16 Jan 2020 13:57:06 -0500 Received: from mail-qv1-f66.google.com ([209.85.219.66]:36178 "EHLO mail-qv1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726892AbgAPS44 (ORCPT ); Thu, 16 Jan 2020 13:56:56 -0500 Received: by mail-qv1-f66.google.com with SMTP id m14so9576781qvl.3; Thu, 16 Jan 2020 10:56:55 -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=X5psP6nW/Y1xNS1QkA2tl6VWc1qbUvTdajI5ErCGOQg=; b=YZ6F46+0Ql9tiDax2D3pRIqtWb2uH/6clZ/R4Lr6fbgSm0ysX5ou/uyy5BuoC5KZHx 8st8/A/fzbPc5MEDM8ka45IeaEdn287jnQ09ulnDDbRU2Z+X+SJB5TGaya8YvZDQZOHo dosE7fMsjYfRWSHJFTE2tfk+zQaKAlXFEsWRPQzjn2hNrk9bFtq/mkpNzaZhl1g/GU1r /+QJBjUZvcHrQ3jOdx7G9oHco9tGCc12KUjRM/QhMKCAPh/G07H1B7cSxvYrsikb5slG vuDOE2v9862YneE/V0EEIreA/AdnAlOtO3CsJiZ5ZnNjMhfQbY7dKZH2ZsZ4jo9fb65f nbaA== 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=X5psP6nW/Y1xNS1QkA2tl6VWc1qbUvTdajI5ErCGOQg=; b=mmkwYGlsmoQcb6LyDk7pU17YWhomuo+9MwJIoTvwwdL3ygeov+ZAbMRUVze8p6nzAh nu6PLm82nCxlNYN9uJalTPRyi/eFgxHq4IeriAQIxj/AJttAskOanqucUxNtta++Mx8W y/YXHZsPygqIbZibOQXuIQRK+Ky9Ou0FGLTN06yBduGagIdLVhWcxBw08LKJLXERe113 cTlXE++xyHfOrICcXyeCssItK21dFkvKB7+G8I6zaDLt+q+BeUGDNoYdE59Bo9EzbsGI BzqNMHkHLADjeVBrcdoF7eUNhW3npcsaNmBITRB2BLEsgipSdeY/c+6I5+VfwSN8WIeZ f3qw== X-Gm-Message-State: APjAAAWRG4zY8xicW3o5o5fGkitJVhemICSUOcYMrTyrxd1nU3rWO3Kh zPMlrsIQuqDqv46RIUn6jZoP3OB3/8uvOkyvAPs= X-Received: by 2002:ad4:4e34:: with SMTP id dm20mr4141595qvb.163.1579201015134; Thu, 16 Jan 2020 10:56:55 -0800 (PST) MIME-Version: 1.0 References: <157918093154.1357254.7616059374996162336.stgit@toke.dk> <157918093501.1357254.2594464485570114583.stgit@toke.dk> In-Reply-To: <157918093501.1357254.2594464485570114583.stgit@toke.dk> From: Andrii Nakryiko Date: Thu, 16 Jan 2020 10:56:43 -0800 Message-ID: Subject: Re: [PATCH bpf-next v3 03/11] selftests: Pass VMLINUX_BTF to runqslower Makefile 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:22 AM Toke H=C3=B8iland-J=C3=B8rgensen wrote: > > From: Toke H=C3=B8iland-J=C3=B8rgensen > > Add a VMLINUX_BTF variable with the locally-built path when calling the > runqslower Makefile from selftests. This makes sure a simple 'make' > invocation in the selftests dir works even when there is no BTF informati= on > for the running kernel. Because of the previous changes to the runqslower > Makefile, if no locally-built vmlinux file exists, the wildcard search wi= ll > fall back to the pre-defined paths (and error out if they don't exist). > > Fixes: 3a0d3092a4ed ("selftests/bpf: Build runqslower from selftests") > Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen > --- > tools/testing/selftests/bpf/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftes= ts/bpf/Makefile > index 246d09ffb296..30d0e7a813d2 100644 > --- a/tools/testing/selftests/bpf/Makefile > +++ b/tools/testing/selftests/bpf/Makefile > @@ -127,7 +127,7 @@ $(OUTPUT)/test_stub.o: test_stub.c > .PHONY: $(OUTPUT)/runqslower > $(OUTPUT)/runqslower: force > $(Q)$(MAKE) $(submake_extras) -C $(TOOLSDIR)/bpf/runqslower = \ > - OUTPUT=3D$(CURDIR)/tools/ > + OUTPUT=3D$(CURDIR)/tools/ VMLINUX_BTF=3D$(abspath ../= ../../../vmlinux) we can do "first match" wildcard trick here instead > > BPFOBJ :=3D $(OUTPUT)/libbpf.a > >