From patchwork Mon Mar 7 13:30:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KP Singh X-Patchwork-Id: 12771861 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB81DC433FE for ; Mon, 7 Mar 2022 13:31:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235583AbiCGNbv (ORCPT ); Mon, 7 Mar 2022 08:31:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbiCGNbu (ORCPT ); Mon, 7 Mar 2022 08:31:50 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7B4E7F6E9 for ; Mon, 7 Mar 2022 05:30:56 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 667A3B8124E for ; Mon, 7 Mar 2022 13:30:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB81DC340E9; Mon, 7 Mar 2022 13:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646659854; bh=9VHhuaf85/q9hqMhhenNd31Adqm3rmCCuzKYZoPPwVU=; h=From:To:Cc:Subject:Date:From; b=KCSWYx6V3kC84Dc3XpoSxRFzD8+v9Ayjju8Qtn+tUaNqHmBDgQVI1pbTjwMfojcJv KOM4lfZvAXvfMnFtpnV76+GEcSU/PkLCOtiJBdJAx+d7LMxkg6wz0JUHxY1rpEL/QJ 8m/hqR4JUhCTbXpAgcGG/8tcsy9D03/7wlX3T2V6Oe30hbGlyLadi5tmABL/WFoAq4 UCBhpR820RssSoZosbLZpYW0qfyxM6PsZ5eJvK3rEm1frXPPwC+ysn/xcboKKeJl3G a6T8wBgi+Qr6GPMNg1+WB+7IaGXi6exQ9de34U+G+JLHzJ+H+O6R3iYab/EF1QOVHo ZAAYqfnYfGNww== From: KP Singh To: bpf@vger.kernel.org Cc: "Geyslan G. Bem" , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Subject: [PATCH bpf-next 1/2] bpf/docs: Update vmtest docs for static linking Date: Mon, 7 Mar 2022 13:30:47 +0000 Message-Id: <20220307133048.1287644-1-kpsingh@kernel.org> X-Mailer: git-send-email 2.35.1.616.g0bdcbb4464-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net Dynamic linking when compiling on the host can cause issues when the libc version does not match the one in the VM image. Update the docs to explain how to do this. Before: ./vmtest.sh -- ./test_progs -t test_ima ./test_progs: /usr/lib/libc.so.6: version `GLIBC_2.33' not found (required by ./test_progs) After: LDLIBS=-static ./vmtest.sh -- ./test_progs -t test_ima test_ima:OK Summary: 1/0 PASSED, 0 SKIPPED, 0 FAILED Reported-by: "Geyslan G. Bem" Signed-off-by: KP Singh --- tools/testing/selftests/bpf/README.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/bpf/README.rst b/tools/testing/selftests/bpf/README.rst index d099d91adc3b..f7fa74448492 100644 --- a/tools/testing/selftests/bpf/README.rst +++ b/tools/testing/selftests/bpf/README.rst @@ -32,6 +32,14 @@ For more information on about using the script, run: $ tools/testing/selftests/bpf/vmtest.sh -h +Incase of linker errors when running selftests, try using static linking: + +.. code-block:: console + + $ LDLIBS=-static vmtest.sh + +.. note:: Some distros may not support static linking. + .. note:: The script uses pahole and clang based on host environment setting. If you want to change pahole and llvm, you can change `PATH` environment variable in the beginning of script. From patchwork Mon Mar 7 13:30:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KP Singh X-Patchwork-Id: 12771862 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB33FC433EF for ; Mon, 7 Mar 2022 13:31:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229529AbiCGNbw (ORCPT ); Mon, 7 Mar 2022 08:31:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236126AbiCGNbv (ORCPT ); Mon, 7 Mar 2022 08:31:51 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F3877F6F4 for ; Mon, 7 Mar 2022 05:30:57 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C96746122D for ; Mon, 7 Mar 2022 13:30:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 509EAC340F3; Mon, 7 Mar 2022 13:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646659856; bh=31+R4UnZ61SObhWIDQT9GnDaCSVSHfzKpVrsfw4E2Ug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jV/PMZ4cOudyFd/TnyuXL7WghWMcSNT3fj4YTeuuONM87gHs92KR/5+ed0mocukVt wqevJ2MK2tCiZaEWi/A7VcRZHdsbSJ57MbJuzn38FeuveBRY0GddmdzZHIFVxs2e4k iSHMczr/d2XJFzxWSWh3Kcwh6MRYu8iCDyR3qKet9r551L5K8NSaW6aDhPwgm7gPat 8HSfEUSR2YtxtlOQoUreuNf8/4z3MjwodhY5JK3A++Lx1oNxdlfbRRhU9uN6HvXDS1 dmAo6oQ2J7nosd6UNeeMhgENUoCjiqPkIprwn1XMDHOIr4DltRIYjCs3wqyZiXO1IR rQctaUP4Rni4A== From: KP Singh To: bpf@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Subject: [PATCH bpf-next 2/2] bpf/docs: Update list of architectures supported. Date: Mon, 7 Mar 2022 13:30:48 +0000 Message-Id: <20220307133048.1287644-2-kpsingh@kernel.org> X-Mailer: git-send-email 2.35.1.616.g0bdcbb4464-goog In-Reply-To: <20220307133048.1287644-1-kpsingh@kernel.org> References: <20220307133048.1287644-1-kpsingh@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net vmtest.sh also supports s390x now. Signed-off-by: KP Singh --- tools/testing/selftests/bpf/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/README.rst b/tools/testing/selftests/bpf/README.rst index f7fa74448492..54410ef3fc1c 100644 --- a/tools/testing/selftests/bpf/README.rst +++ b/tools/testing/selftests/bpf/README.rst @@ -44,7 +44,7 @@ Incase of linker errors when running selftests, try using static linking: If you want to change pahole and llvm, you can change `PATH` environment variable in the beginning of script. -.. note:: The script currently only supports x86_64. +.. note:: The script currently only supports x86_64 and s390x architectures. Additional information about selftest failures are documented here.