From patchwork Fri Apr 29 01:42:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pu Lehui X-Patchwork-Id: 12831401 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99D6DC433EF for ; Fri, 29 Apr 2022 01:14:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=v6zIJTartzC0r80+HfGmCi0FexXoEO4b/aZfl2Ke6qQ=; b=BMs9yqKwwZvKNc YdzpzyT0daUJ5etA5lIoUkXrkk0A55gI7qYGeKbeq6wxWlpBsh+sCMRqwPIqa7MjsTKu06V8Gi44l lowytHcywwyCvNc9hYvIT1HFkyXm7YjbXfUXVBBN7Tf74NCRQqBOxYsHT5Jn+HvwHbKyylPFHAZmM p/sXc0BQFCM+0viG7NTZFoOUxvJnFnPEd+eKFw8vO5MXFqHEAwoszwo2OeL6LlaIv1RhSkVymaRPr Al6IYybHMMroAfZbUch3OvUSeW4p8aEOF7OIYIudWS/SaKF40OM7Ot77D1ZCLz++RUcy8wzZjL2qq vvwJL5Q1KQpUyLCp+Cgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkFD5-009DXv-Ju; Fri, 29 Apr 2022 01:14:15 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkFD1-009DW1-FY for linux-riscv@lists.infradead.org; Fri, 29 Apr 2022 01:14:13 +0000 Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KqDxy30SdzfbB2; Fri, 29 Apr 2022 09:13:10 +0800 (CST) Received: from dggpemm500019.china.huawei.com (7.185.36.180) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 29 Apr 2022 09:14:06 +0800 Received: from k04.huawei.com (10.67.174.115) by dggpemm500019.china.huawei.com (7.185.36.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 29 Apr 2022 09:14:06 +0800 From: Pu Lehui To: , , , , Pu Lehui CC: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , Luke Nelson , Xi Wang , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Paul Walmsley , Palmer Dabbelt , Albert Ou Subject: [PATCH bpf-next v2 0/2] Support riscv jit to provide Date: Fri, 29 Apr 2022 09:42:38 +0800 Message-ID: <20220429014240.3434866-1-pulehui@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.67.174.115] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500019.china.huawei.com (7.185.36.180) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220428_181411_723848_EB662D78 X-CRM114-Status: UNSURE ( 5.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org patch 1 fix an issue that could not print bpf line info due to data inconsistency in 32-bit environment. patch 2 add support for riscv jit to provide bpf_line_info. Both RV32 and RV64 tests have been passed as like follow: ./test_progs -a btf #19 btf:OK Summary: 1/215 PASSED, 0 SKIPPED, 0 FAILED v2: - Remove some trivial code v1: https://lore.kernel.org/bpf/20220426140924.3308472-1-pulehui@huawei.com Pu Lehui (2): bpf: Unify data extension operation of jited_ksyms and jited_linfo riscv, bpf: Support riscv jit to provide bpf_line_info arch/riscv/net/bpf_jit.h | 1 + arch/riscv/net/bpf_jit_core.c | 7 ++++++- kernel/bpf/syscall.c | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-)