Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7770312ybl; Thu, 16 Jan 2020 05:24:44 -0800 (PST) X-Google-Smtp-Source: APXvYqydpGHDfPYzNK9lx63jA7WqMsLl87oDP1ckYx9a0SPiACtdDR5JPsE/nyYCfCEpr0a6d10+ X-Received: by 2002:a05:6808:64d:: with SMTP id z13mr4029594oih.104.1579181084602; Thu, 16 Jan 2020 05:24:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579181084; cv=none; d=google.com; s=arc-20160816; b=WZxCPG3B5WMiDRpZV0zNUbcyKqwdnf2ZPufX+0oSQXHfLKbQbz0VVlkMF5ZhMbnGiD JqUyR4kkub+AoQEAsuMcymuM0CKwGziawapJHNz1eJXjfNGjWpnLJh5Q5xIfc1FVmjQ9 15/xCWfInjCJ8SmElPq68XWEEq2kFncNd7MDI+inw8cbQLwfrVq9nzBwlmwE0DlhK4tZ gVF7ZAWET4/f3On5FRXkLxHmefczdhjIw+4YA+ZzIAmhGJoJMzHkyuBwL5lOD8uEk5PU E3IpK7KP10pvcnLOsmihjwy36HZOcyEiN9BfKjgoSowLpjG9LilWKsgXizmcN+F9PWWY in/g== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dkim-signature; bh=1JNaXEay+BfE39lyxyJ2PEP3ihhAoXZzq/eELhC4L1o=; b=mQB9sVuNYSaIZpTJhv2mJL3BC7wbPoo/etjdl4JpOvcomFVEfJvdeJ3inaNNC8ybP2 tLqnNr6LpmdyvdzXZZjvd1/gQtmYo3Yz8W3GomFPJuqZ0PEYI7rzVKeJwBTpo9KbwjH1 UfxUU/yZ2I6YigWpC3/lj5oezORaFU9p5EjJuPDVIM/ZACYh0h3YQZVCZHwOzgD7XdUA n/ZxwoMp891CIuWZRjhooAIYDjPSZkTUlRw+BLs1u6O0DrM00YqHJdHyxG8OrQ+7TUox 5W9f4BN2cFWfeivekm/k50UzpkM9amx31xc0QyRwC6c7UVkWcro1LtO0B91Hykw/JUhL 9W8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ind/tjrp"; 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 e22si12814957otj.38.2020.01.16.05.24.32; Thu, 16 Jan 2020 05:24:44 -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="ind/tjrp"; 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 S1726714AbgAPNXJ (ORCPT + 99 others); Thu, 16 Jan 2020 08:23:09 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:37448 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727009AbgAPNWW (ORCPT ); Thu, 16 Jan 2020 08:22:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579180941; 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=1JNaXEay+BfE39lyxyJ2PEP3ihhAoXZzq/eELhC4L1o=; b=ind/tjrp+hJc/rBV+uiLs1nkYyeJ0vpMywNrOWtzT/8qyI6cfzgYFlHjUO8IAsd+oe84X2 N7m4qdC8kKpBKtTyA3ZwuAM0C3Q+bi+hnF6n6G2L6ASxdCRgvKrvWm/lgrfnzy96F1w5VY jDnmrcLSQTWHyDRqLZTcB3qqf5vsTX0= 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-357-licpUYjnNqOUcUuZFLzkCg-1; Thu, 16 Jan 2020 08:22:19 -0500 X-MC-Unique: licpUYjnNqOUcUuZFLzkCg-1 Received: by mail-lj1-f199.google.com with SMTP id t11so5146906ljo.13 for ; Thu, 16 Jan 2020 05:22:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=1JNaXEay+BfE39lyxyJ2PEP3ihhAoXZzq/eELhC4L1o=; b=TnZRSZVOhoT2Xy6Ap33Qs6rC7ZaXfBTd/6BtkDPa/7OMgtcZACTInxWcR3Vl468SJI U38MKhRnqNt0rppnE9KkLbe9S4+EqXFaCYtqDyN/qfmdLg42cM5/f4g+aErtURJu+vBl cyzZ/ihIBp+j6+W6y7DYSVvu+rqStRMUFXGnKiEQUJs8UC3y2iagTpPF0MeMM8NJq6vq o844wyaSkvOs+Vf2RZkcwbI8yCGGWrS6t818gUwO7cmhAf16ZTQFlIsSkkZrCnNz7Re3 gWc+xXP547kYFc7VQYu/Yvi6l3wKELB2Bze3LFnXVYdG+5qUFq1niVfe3OJRuGhWdtiZ svMA== X-Gm-Message-State: APjAAAUQmG6RON7Yq2+R3hlZOUbVgb+xOB5CFYHRe0/AtRi1fS28asU5 DQJjaLBm6MmfNyUZUwc5243fC76WzgofJJII3/LxaYBZY8dX5EWR7hLFQL9Q2ZQHbvx7ZKfvkZc xGvsGdr3JLCuDx4IOPMn9qMnH X-Received: by 2002:a2e:9b9a:: with SMTP id z26mr2097982lji.181.1579180937449; Thu, 16 Jan 2020 05:22:17 -0800 (PST) X-Received: by 2002:a2e:9b9a:: with SMTP id z26mr2097957lji.181.1579180937304; Thu, 16 Jan 2020 05:22:17 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id v8sm10931631lji.16.2020.01.16.05.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2020 05:22:15 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 2129A1804D6; Thu, 16 Jan 2020 14:22:15 +0100 (CET) Subject: [PATCH bpf-next v3 03/11] selftests: Pass VMLINUX_BTF to runqslower Makefile From: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: Alexei Starovoitov Cc: 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 , 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 Date: Thu, 16 Jan 2020 14:22:15 +0100 Message-ID: <157918093501.1357254.2594464485570114583.stgit@toke.dk> In-Reply-To: <157918093154.1357254.7616059374996162336.stgit@toke.dk> References: <157918093154.1357254.7616059374996162336.stgit@toke.dk> User-Agent: StGit/0.21 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Toke Høiland-Jørgensen 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 information for the running kernel. Because of the previous changes to the runqslower Makefile, if no locally-built vmlinux file exists, the wildcard search will 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øiland-Jørgensen --- tools/testing/selftests/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/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=$(CURDIR)/tools/ + OUTPUT=$(CURDIR)/tools/ VMLINUX_BTF=$(abspath ../../../../vmlinux) BPFOBJ := $(OUTPUT)/libbpf.a