From mboxrd@z Thu Jan 1 00:00:00 1970 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 8C2C2C4332F for ; Thu, 26 May 2022 18:56:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348661AbiEZS41 (ORCPT ); Thu, 26 May 2022 14:56:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348722AbiEZS4X (ORCPT ); Thu, 26 May 2022 14:56:23 -0400 Received: from mx0b-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D036522E7 for ; Thu, 26 May 2022 11:56:15 -0700 (PDT) Received: from pps.filterd (m0109331.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24QInvE1022477 for ; Thu, 26 May 2022 11:56:14 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=facebook; bh=qva6/2xAg9ElVHAksJQo7a/qeFCJ8algssTBFifePkE=; b=W4StbjW5PkpJILdybRH43j6FLvBdumnAIJ/9X+JiB5mqhl3rjMGSeScM2WHgWvwKNUNr PYU8V+SmrHDEhDvE8bEZfOv7z/m65qjdqqd3N+DXRPPES/hoXm2SUaCgkpSVnj4QIg6d Myaig01dITibc0lYQUFV7Raps35Jpblt8Lw= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3ga5x8ux5a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 26 May 2022 11:56:14 -0700 Received: from twshared19572.14.frc2.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:82::e) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 26 May 2022 11:56:13 -0700 Received: by devbig309.ftw3.facebook.com (Postfix, from userid 128203) id CEDBCAD83DF8; Thu, 26 May 2022 11:56:01 -0700 (PDT) From: Yonghong Song To: CC: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Subject: [PATCH bpf-next v3 17/18] selftests/bpf: Clarify llvm dependency with possible selftest failures Date: Thu, 26 May 2022 11:56:01 -0700 Message-ID: <20220526185601.2552486-1-yhs@fb.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220526185432.2545879-1-yhs@fb.com> References: <20220526185432.2545879-1-yhs@fb.com> X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-ORIG-GUID: Web3EM7lNUJqjQ9rFXpfPbdiybAyIJch X-Proofpoint-GUID: Web3EM7lNUJqjQ9rFXpfPbdiybAyIJch Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-26_10,2022-05-25_02,2022-02-23_01 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Certain subtests in selftests core_reloc and core_reloc_btfgen requires llvm ENUM64 support in llvm15. If an older compiler is used, these subtests will fail. Make this requirement clear in selftests README.rst file. Acked-by: Andrii Nakryiko Signed-off-by: Yonghong Song --- tools/testing/selftests/bpf/README.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tools/testing/selftests/bpf/README.rst b/tools/testing/selftes= ts/bpf/README.rst index eb1b7541f39d..a83d78a58014 100644 --- a/tools/testing/selftests/bpf/README.rst +++ b/tools/testing/selftests/bpf/README.rst @@ -266,3 +266,21 @@ from running test_progs will look like: test_xdpwall:FAIL:Does LLVM have https://reviews.llvm.org/D109073? unexp= ected error: -4007 =20 __ https://reviews.llvm.org/D109073 + +ENUM64 support and Clang version +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D + +There are a few selftests requiring LLVM ENUM64 support. The LLVM ENUM64 is +introduced in `Clang 15` [0_]. Without proper compiler support, the follow= ing selftests +will fail: + +.. code-block:: console + + #45 /73 core_reloc/enum64val:FAIL + #45 /74 core_reloc/enum64val___diff:FAIL + #45 /75 core_reloc/enum64val___val3_missing:FAIL + #46 /73 core_reloc_btfgen/enum64val:FAIL + #46 /74 core_reloc_btfgen/enum64val___diff:FAIL + #46 /75 core_reloc_btfgen/enum64val___val3_missing:FAIL + +.. _0: https://reviews.llvm.org/D124641 --=20 2.30.2