From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E24FA4707D; Thu, 18 Dec 2025 18:11:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC1B240275; Thu, 18 Dec 2025 18:10:59 +0100 (CET) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id 743EA4026A for ; Thu, 18 Dec 2025 18:10:58 +0100 (CET) Received: from mail.maildlp.com (unknown [172.18.224.107]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4dXHH50s6ZzJ468w for ; Fri, 19 Dec 2025 01:10:25 +0800 (CST) Received: from frapema500003.china.huawei.com (unknown [7.182.19.114]) by mail.maildlp.com (Postfix) with ESMTPS id 6A9B240570 for ; Fri, 19 Dec 2025 01:10:56 +0800 (CST) Received: from localhost.localdomain (10.220.239.45) by frapema500003.china.huawei.com (7.182.19.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 18 Dec 2025 18:10:56 +0100 From: Marat Khalili To: Subject: [PATCH v2 0/2] bpf: add xchg and fix rte_bpf_dump Date: Thu, 18 Dec 2025 17:09:11 +0000 Message-ID: <20251218170914.7737-1-marat.khalili@huawei.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251217172037.59170-1-marat.khalili@huawei.com> References: <20251217172037.59170-1-marat.khalili@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.220.239.45] X-ClientProxiedBy: frapema500002.china.huawei.com (7.182.19.148) To frapema500003.china.huawei.com (7.182.19.114) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Two patches that are not exectly functionally related, but one depends on the other code-wise. Atomic exchange is particularly useful since it can be used not just for exchange per se, but also as atomic store. Incidentally it was discovered that rte_bpf_dump does not support not just atomics but also some other instructions. v2: Fix CI failure: do not assume in tests that all platforms have JIT. Marat Khalili (2): bpf: add atomic xchg support bpf: dump additional instructions app/test/test_bpf.c | 459 ++++++++++++++++++++++++++++++++++++++++ lib/bpf/bpf_def.h | 5 + lib/bpf/bpf_dump.c | 69 ++++-- lib/bpf/bpf_exec.c | 35 ++- lib/bpf/bpf_jit_arm64.c | 59 ++++-- lib/bpf/bpf_jit_x86.c | 37 +++- lib/bpf/bpf_validate.c | 22 +- 7 files changed, 637 insertions(+), 49 deletions(-) -- 2.43.0