Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1418046rdb; Wed, 6 Dec 2023 20:12:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3UVJ5GOh5/64e2lyh8pxcD+wq8yH4T+/w/eXb6HMriL5v0XvNkT9gumH0Bib9YaFeK8BB X-Received: by 2002:a05:6a20:7fa0:b0:18b:594a:284c with SMTP id d32-20020a056a207fa000b0018b594a284cmr5821593pzj.15.1701922346321; Wed, 06 Dec 2023 20:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701922346; cv=none; d=google.com; s=arc-20160816; b=lRjkHyRpsuEAprmAFVyamZW2Zar8RrsNcA2bnLHp7hKxci3RwSmOnft4wz8HlUSNjm TOYBhDh8hKfVVwyBX8SgKN/IP360GuwW1cRJl+3P72veafQJOkBOJbO3NuubB+MhvrQf iouLmfdtR661Ixh7ZJvtvK7wk7vXMTM5CWQfOhUfZjnCjlT1fAx5ss7rLoh0Gt3hBZsV NasFT1Ze1+hEvBeNs4ALZpS2ACCx6+cTuvsknGohFb9+Z2invwiDINcLAB6ZetnvS8WN p8nEe7MHR+xiMNkJywWo1ROwqcTXetBfwDsn6BcrMUVEZ2K/yS7XIp8QVb+cI0Tuj87p kxZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=i7wk7k+2hbRZ+kMEddV3mO1bZGa6RdZJKiMXc/opkug=; fh=lSFKARY14fLA2EPX8uPzPn5DZd6ETzxIpQxdOCjsjSo=; b=ncYMn7L2MJF4zA45ABV0FwcQNIgvFGz1dgyMpXn7O4dOidBZ18WDSjl2ubdzMtxTNq 9li+Cj2UXoQlupCMhN9BcJkrCD1bwbqU3NpXR4omKBk68D2WaOiGOlUT3jE2K/YAtPjC lww/OJY2NfQgFYNPiV6Bn+wzMkhshBJu7NFQoJty6pHhF7/cPQISY3m0DFkrLJK6aooK yU7lJOpFeDZJ8MOnjClRr5xWSG5+U159CqUhf/gN/7uQEyL1JoGH7RkHDJltJl7556cc PimFKSDQ1KZLLjJ9VcLu3KMqa6efs8LNCieiOwHggL78111vY4NQy6tRbRJRFNXYxEjE z85w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id w20-20020a631614000000b005c603ab4578si465506pgl.173.2023.12.06.20.12.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 20:12:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CE54381F36AB; Wed, 6 Dec 2023 20:12:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229459AbjLGEIy (ORCPT + 99 others); Wed, 6 Dec 2023 23:08:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjLGEIx (ORCPT ); Wed, 6 Dec 2023 23:08:53 -0500 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 63D13D73; Wed, 6 Dec 2023 20:08:59 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxIvBZRXFlqoY_AA--.60736S3; Thu, 07 Dec 2023 12:08:57 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxK9xYRXFltidXAA--.61203S2; Thu, 07 Dec 2023 12:08:57 +0800 (CST) From: Tiezhu Yang To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: Puranjay Mohan , bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND bpf-next v1] test_bpf: Rename second ALU64_SMOD_X to ALU64_SMOD_K Date: Thu, 7 Dec 2023 12:08:51 +0800 Message-ID: <20231207040851.19730-1-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxK9xYRXFltidXAA--.61203S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7XFyrArWfZw1rWr48trWkuFX_yoWDKwcE9a 18AF9rAF15uFyYvw4SgFWDKrs29F4Dt3WxCr1DuFWDGay5Jry5Cr4kZr1Uua45WrZav3ZF v3WDt3ZrGwnYkosvyTuYvTs0mTUanT9S1TB71UUUUjDqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb3AYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1ln4kS14v26r126r1DM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r12 6r1DMcIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64 vIr41lc7CjxVAaw2AFwI0_Jw0_GFyl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_ Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1V AY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAI cVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42 IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIev Ja73UjIFyTuYvjxU2rgADUUUU X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 06 Dec 2023 20:12:24 -0800 (PST) Currently, there are two test cases with same name "ALU64_SMOD_X: -7 % 2 = -1", the first one is right, the second one should be ALU64_SMOD_K because its code is BPF_ALU64 | BPF_MOD | BPF_K. Before: test_bpf: #170 ALU64_SMOD_X: -7 % 2 = -1 jited:1 4 PASS test_bpf: #171 ALU64_SMOD_X: -7 % 2 = -1 jited:1 4 PASS After: test_bpf: #170 ALU64_SMOD_X: -7 % 2 = -1 jited:1 4 PASS test_bpf: #171 ALU64_SMOD_K: -7 % 2 = -1 jited:1 4 PASS Fixes: daabb2b098e0 ("bpf/tests: add tests for cpuv4 instructions") Signed-off-by: Tiezhu Yang --- Add "bpf-next" in the patch subject, sorry for that lib/test_bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_bpf.c b/lib/test_bpf.c index 7916503e6a6a..3c5a1ca06219 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -6293,7 +6293,7 @@ static struct bpf_test tests[] = { }, /* BPF_ALU64 | BPF_MOD | BPF_K off=1 (SMOD64) */ { - "ALU64_SMOD_X: -7 % 2 = -1", + "ALU64_SMOD_K: -7 % 2 = -1", .u.insns_int = { BPF_LD_IMM64(R0, -7), BPF_ALU64_IMM_OFF(BPF_MOD, R0, 2, 1), -- 2.42.0