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 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 965D2C433EF for ; Mon, 11 Jul 2022 03:58:34 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GlQqirlT9E9GwLvvV9nVYh3f5LFJKIRoZKpC+ge6+LQ=; b=IhcocgiWUpZiiK 7AYN+jVVuwYZZfDnOVQ5qR6+Za4N8HaH4gn5KOnjUei+4zW008wAvDGHcF4uanZHh/FS6akRgVI4N GyuGo+WNZ/J9Q2wCMyfaWQ1rx3qIbazQUxx8/ft+Kwq98R3rdnjPQO3imxuOJKX9GJG0TF+svWx7a Tg3M32D41vcK6d7jUx4TRlF1yGZG9QpCl0Kt7003lNtj2pvomk43d+mydhsMFc4Y81Vpc4BhgOht8 XKkbAHdrPWtk7Hslc3pDiThiv8j0/IMNSY3uzHIkO2Hg+gSxOadulTqkJ8wRa8CkWAzxh9NjQzl99 t0GMNOmURKeaQdnaqsNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAkYw-00FloL-Lt; Mon, 11 Jul 2022 03:58:22 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAkYr-00Flmi-Tu; Mon, 11 Jul 2022 03:58:17 +0000 Date: Sun, 10 Jul 2022 20:58:17 -0700 From: Christoph Hellwig To: Yixun Lan Cc: Christoph Hellwig , Yonghong Song , Andrii Nakryiko , Alan Maguire , Palmer Dabbelt , linux-riscv@lists.infradead.org, Paul Walmsley , Albert Ou , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , John Fastabend , KP Singh , open list , Networking , bpf Subject: Re: [PATCH] RISC-V/bpf: Enable bpf_probe_read{, str}() Message-ID: References: <20220703130924.57240-1-dlan@gentoo.org> <712c8fac-6784-2acd-66ca-d1fd393aef23@fb.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Sat, Jul 09, 2022 at 04:48:05PM +0800, Yixun Lan wrote: > never mind, I think the logic is quite clear, we can do something in bcc: > > 1) adopt new _{kernel,user} interface whenever possible, this will > work fine for all arch with new kernel versions > > 2) for old kernel versions which lack the _{kernel,user} support, > fall back to old bpf_probe_read(), but take care of the Archs which > have overlaping address space - like s390, and just error out for it Yes, that is the right thing to do. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv