From patchwork Thu Nov 7 12:52:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 178800 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp988004ilf; Thu, 7 Nov 2019 04:52:41 -0800 (PST) X-Google-Smtp-Source: APXvYqy6NXsmda7Xqp6XI/JH3YxioEOkG6dQ1tjxYQx7yTHHe2Trto2nmE2WT9LVcp+R8zLqf0VT X-Received: by 2002:a17:906:1505:: with SMTP id b5mr2855402ejd.195.1573131161179; Thu, 07 Nov 2019 04:52:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573131161; cv=none; d=google.com; s=arc-20160816; b=sU44v5jFYrzbMVxvLmVF9/wV7+UW77J1Xy6Kid2QxNFG4p5IGtC0oJv6DUxiYAiYbd BKu+VYsQ/XNpZ36jUx7w7ZjTFcKDUNJBkZPjfOalnw7EEqLVg6kCy5LQX8WnTMnrCjK4 Q64QE+XDH+5tmgaRwxqdWnzamC+gGXIc2M3VPKnDytxz4TDz7J2fiI+t3sTaYMlaJPTb bwrXu+DLs2cn2Y6mEYuKIipZKBoGUne46XLjtvw4FGyMTtGii7WCvX9SXZGOky0wvz2M 5w0yM+cZcGAXoYOXDNTj9ELInjF8c2kzZAegjcrlRXfQqhmqIoQZNZlOUHQ6EuAkEnVB 5lhQ== 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:subject:cc:to:from:dkim-signature; bh=p+MIjxw4i3V/EkbtjtpDD2n0kK+NAJPN/6KwZf8q01c=; b=IUHktzBjAwaZCoHtoWaZ2SH46g3oR3MB/u8eoDDWoT+hJALSlCyorOB23UX1iQUgbf GvLEDcC/jPQZzJcqkq9k9Qhb5i8YkExg1368EB1112y4bLGxeVEnxncuRUu5VJOqB8D/ Od8ePedeL9DDA5DnbuupmSFxRGyCr5xZ+zFO+dz/isF4r7Z3ajUVt29hiYyvOxWRRUFI CVMMrQCuG55F73Wnyzs8XakQD+AZjXvwQFVXwjI2O/BRQ+I2vIDq5hgbkxcFBB+YU/ef rQYP4yo6uX4joZdzdxEUnXfU1TOiWdhsGJOVzQwvkAzqH/TvgAdoH+zWAqc2Tg6hcNbb ZE8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F4Gi+sAj; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z41si1395331edb.166.2019.11.07.04.52.41; Thu, 07 Nov 2019 04:52:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-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=@linaro.org header.s=google header.b=F4Gi+sAj; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733122AbfKGMwh (ORCPT + 9 others); Thu, 7 Nov 2019 07:52:37 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:41880 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727142AbfKGMwh (ORCPT ); Thu, 7 Nov 2019 07:52:37 -0500 Received: by mail-lf1-f66.google.com with SMTP id j14so1501234lfb.8 for ; Thu, 07 Nov 2019 04:52:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=p+MIjxw4i3V/EkbtjtpDD2n0kK+NAJPN/6KwZf8q01c=; b=F4Gi+sAjPQQ2+8UNWymnpTCOTFpwmm1zRyk/S8HolMPz56GiHuHMk8RFNCyRpWDK1C aGutIV2F7vdfZLm0aDQehgWXCJmfU8CW6UpQHW5Li3V3sjS9B5cjo/pg80OXkp95ySdI t//LwHG4Pqx6qIOQ7X/cf5m5NIUwTMAm0MH7klgJ4h0XnvqU4d4ennnvZmFMX6TZUS1h CCDpWO8q07QYSh3VRHtq9fSQSJpROX5V4qH7VmV/MmEnCsFyXyRZV4BOnpOrReBZCYlh VM9nd7/OiNOAYI/QIREovNPbtPjuktHpXNppNFgZVk50rpxMZB/uXR0G1Y0BnoU2jJ0n EKwQ== 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:date:message-id:mime-version :content-transfer-encoding; bh=p+MIjxw4i3V/EkbtjtpDD2n0kK+NAJPN/6KwZf8q01c=; b=QOFMQzxGeyXRPi6IgT39eS4uxn1ugsbAZwJ8UBSOYWqS/dBRJlIUvF8X7c3X3csxP9 +Hf+fZKvcwFpNec3sPhgkTrYpVu9dyTKDr6JnYtzfg4ieBLxwTcpxzDneyegglinAp3c hzx1P4hPzIwvUGLKhdGkH69U/GTIbufCQF9a8HOg99D+7vGW8TtWNIxpV6TyJXn5QkYn J0FGfZBQv5csZAtFn9MHiVe0OSSSPRO6GdbSAdPtKvJqHavT+ib2E2ljadMxftIOEa70 RKS2Z21CfooNzp8KOLuqpnkXPagR6NjN9kRFoyLT5raMjtUqRI90yhfTCer8Q4TLHdlB FIdQ== X-Gm-Message-State: APjAAAWPdtWJOscQ4WQs1qkz9s7bDOqU7rP8Pvz2SicPQ/lG7vs7dOoF Lco6xkNIqGYAmmAdul6POai4Tg== X-Received: by 2002:a19:ca13:: with SMTP id a19mr2297916lfg.133.1573131154733; Thu, 07 Nov 2019 04:52:34 -0800 (PST) Received: from localhost (c-413e70d5.07-21-73746f28.bbcust.telenor.se. [213.112.62.65]) by smtp.gmail.com with ESMTPSA id z22sm853118ljm.92.2019.11.07.04.52.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 04:52:34 -0800 (PST) From: Anders Roxell To: ast@kernel.org, daniel@iogearbox.net, davem@davemloft.net Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, Anders Roxell Subject: [PATCH 1/2] selftests: bpf: test_lwt_ip_encap: add missing object file to TEST_FILES Date: Thu, 7 Nov 2019 13:52:23 +0100 Message-Id: <20191107125224.29616-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org When installing kselftests to its own directory and running the test_lwt_ip_encap.sh it will complain that test_lwt_ip_encap.o can't be find. $ ./test_lwt_ip_encap.sh starting egress IPv4 encap test Error opening object test_lwt_ip_encap.o: No such file or directory Object hashing failed! Cannot initialize ELF context! Failed to parse eBPF program: Invalid argument Rework to add test_lwt_ip_encap.o to TEST_FILES so the object file gets installed when installing kselftest. Fixes: 74b5a5968fe8 ("selftests/bpf: Replace test_progs and test_maps w/ general rule") Signed-off-by: Anders Roxell --- tools/testing/selftests/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index b334a6db15c1..cc09b5df9403 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -38,7 +38,7 @@ TEST_GEN_PROGS += test_progs-bpf_gcc endif TEST_GEN_FILES = -TEST_FILES = +TEST_FILES = test_lwt_ip_encap.o # Order correspond to 'make run_tests' order TEST_PROGS := test_kmod.sh \ From patchwork Thu Nov 7 12:52:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 178801 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp988135ilf; Thu, 7 Nov 2019 04:52:46 -0800 (PST) X-Google-Smtp-Source: APXvYqzUtxA09fS8ARea67EKLgTUwAqFtH5+CphaWQEIvcZuneqi8OGgpjQPCOFPaHH+o5Yga8+k X-Received: by 2002:aa7:db52:: with SMTP id n18mr3208830edt.169.1573131166497; Thu, 07 Nov 2019 04:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573131166; cv=none; d=google.com; s=arc-20160816; b=GpWiq38gTNBL6idyA1z1AaHmBkUu4iD4znsHyzAYsbRdHMUtpCLD2rG/5ymRuMWjY+ WBY4kaBJlXrsC2JmtOfihkmJPVHzMAd4ni9KZnKsrQLIWUnpK+D1rZMLjO4YvxjuEuXa ro9707BxWQyaOTm03Mbl13UvAIWTMfGIXexvr+bu1HnXTgmpQedB9g59ECJpM7i1wcvL TIFERxWO2Ms9HPDeeEd/BGAEopiZpwa/nVL/YevgutRh466wu5j7I5LixyJeZPXX5biW qn758QoFVmM6bHsyNHHLXAxSYH0MD9v4vgUERMGS9P867SOMUqlMoxM6MYaX3/1iebvZ 6zDg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wx4mNjMFyM/tBCetl9PoO1sT6W5jcZPQW0WwQCBdqWI=; b=lijpNKGMnXOUxfLUn9qFtVB5qoflt2JhjaOBkWFIouYzqv+vxD17WV7RpxyGZ1NN/3 Cpsmb2oH5eM5DvgBlJnvgaybNf+a7+H2YqwFPFwCfEYE1JUpek32lUikDK6SAjRHtla4 pgypcAKStyNxmlmBhBeuFXlOptAB4L+E1WfxEUCbQepk/sLMiax5qr0MVEdHbN+H5U1V OQtPspRiD/EZpLSbDRmjEUTbxkBMMRJjALBZxvwUxHvVo1y9uTIPlk9jYzbkDZuiihhl lu1oGaulRDuwblHN16NNYJLGqUcMjPHk1JSKloE3mq2a/UI3WoXsCOkF62BM/CdAAXS7 rvxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HzpSICQR; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si1331895eda.412.2019.11.07.04.52.46; Thu, 07 Nov 2019 04:52:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-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=@linaro.org header.s=google header.b=HzpSICQR; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388760AbfKGMwm (ORCPT + 9 others); Thu, 7 Nov 2019 07:52:42 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:44941 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727142AbfKGMwl (ORCPT ); Thu, 7 Nov 2019 07:52:41 -0500 Received: by mail-lf1-f67.google.com with SMTP id v4so1490683lfd.11 for ; Thu, 07 Nov 2019 04:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wx4mNjMFyM/tBCetl9PoO1sT6W5jcZPQW0WwQCBdqWI=; b=HzpSICQRrj53FhQ/Vk1rFJ4Anx8mvt3pW0xbR+agtZ07z5LD0owoTGfwr36NsnMM3V utkhWcjnEipIBMe18nq45WWqky0Vbq0RdmEq1+OqTCspcWQUUZqBSfs+uIhnt+pMiiYo bqRO3tw9sWC3kcsfme03aUcxZwdK9IfrlGftX+vWVo9j08nluvUoiva19wHtukyTr3ON Werf8wryuxHmw+L5p7RbGi78q9OxThD5tTJVN7jXiQEgFIxeVL+W4Wt/70fBkLkq8KQZ 9oitBemRGOxga2jRO7FAoOubAnPVc72JOJGewWgxNfJ4sj+vP+yMisuIeNv2iYe0cQK6 ePmg== 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:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wx4mNjMFyM/tBCetl9PoO1sT6W5jcZPQW0WwQCBdqWI=; b=haXBVevn+nppUcsi9BX6LWZa6hw8V9j6SDVHBOpcWNVEiojLS5xaG9DTc4AyjX9vBK jVJsAS8Rxfcd350AVT/6UOzvIXd4efjOx7giNYkGydoNzsYVVXUQ05X4mQWmV2Jj2n9J bmm+jVEBHoAP0hbpZI+QXI7kmDFrf0v7ya1vkGX/94CpNFT8aM23ZK+F7sXPVuf3piTV A7OQTKWwDgqTjmL00y8WS6e3LOLH25Vc24eZWmTPs3llzwDKqHUIcZbUkp7dUXIsW13c 3kju2JT24itsQ8a2cMGycB5iIjXhkVilA86gY0QVpLXz5dw060OJxuETJrN6XLuPs5ci gLzw== X-Gm-Message-State: APjAAAWDTedc8o5eqfVnusr0KfrSJme2aiaWgnxU+Nv0MOXl7+oTgixB EVWCPGDXKiorU/mbIZswLCtXTA== X-Received: by 2002:ac2:5deb:: with SMTP id z11mr2441628lfq.35.1573131159315; Thu, 07 Nov 2019 04:52:39 -0800 (PST) Received: from localhost (c-413e70d5.07-21-73746f28.bbcust.telenor.se. [213.112.62.65]) by smtp.gmail.com with ESMTPSA id t8sm999889lfl.51.2019.11.07.04.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 04:52:38 -0800 (PST) From: Anders Roxell To: ast@kernel.org, daniel@iogearbox.net, davem@davemloft.net Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, Anders Roxell Subject: [PATCH 2/2] selftests: bpf: test_tc_edt: add missing object file to TEST_FILES Date: Thu, 7 Nov 2019 13:52:24 +0100 Message-Id: <20191107125224.29616-2-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191107125224.29616-1-anders.roxell@linaro.org> References: <20191107125224.29616-1-anders.roxell@linaro.org> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org When installing kselftests to its own directory and running the test_tc_edt.sh it will complain that test_tc_edt.o can't be find. $ ./test_tc_edt.sh Error opening object test_tc_edt.o: No such file or directory Object hashing failed! Cannot initialize ELF context! Unable to load program Rework to add test_tc_edt.o to TEST_FILES so the object file gets installed when installing kselftest. Fixes: 74b5a5968fe8 ("selftests/bpf: Replace test_progs and test_maps w/ general rule") Signed-off-by: Anders Roxell --- tools/testing/selftests/bpf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index cc09b5df9403..b03dc2298fea 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -38,7 +38,8 @@ TEST_GEN_PROGS += test_progs-bpf_gcc endif TEST_GEN_FILES = -TEST_FILES = test_lwt_ip_encap.o +TEST_FILES = test_lwt_ip_encap.o \ + test_tc_edt.o # Order correspond to 'make run_tests' order TEST_PROGS := test_kmod.sh \